<!DOCTYPE html>
<html lang="zh-cn"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=0">

  <meta charset="utf-8">
  <title>函数 | 达梦技术文档</title>
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- Canonical links -->
  <link rel="canonical" href="https://hexo.io/zh-cn/pm/function.html">
  <!-- Alternative links -->
  
    
      <link rel="alternative" hreflang="zh-cn" href="https://hexo.io/zh-cn/zh-cn/pm/function">
    
  
  <!-- Icon -->

  <link rel="stylesheet" href="%E5%87%BD%E6%95%B0%20%E8%BE%BE%E6%A2%A6%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3_files/md-article.css">
  <link rel="stylesheet" href="%E5%87%BD%E6%95%B0%20%E8%BE%BE%E6%A2%A6%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3_files/github.min.css">
  <script src="%E5%87%BD%E6%95%B0%20%E8%BE%BE%E6%A2%A6%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3_files/highlight.load.min.js"></script>
  <link rel="apple-touch-icon" sizes="57x57" href="https://eco.dameng.com/document/dm/icon/apple-touch-icon-57x57.png">
  <link rel="apple-touch-icon" sizes="114x114" href="https://eco.dameng.com/document/dm/icon/apple-touch-icon-114x114.png">
  <link rel="apple-touch-icon" sizes="72x72" href="https://eco.dameng.com/document/dm/icon/apple-touch-icon-72x72.png">
  <link rel="apple-touch-icon" sizes="144x144" href="https://eco.dameng.com/document/dm/icon/apple-touch-icon-144x144.png">
  <link rel="apple-touch-icon" sizes="60x60" href="https://eco.dameng.com/document/dm/icon/apple-touch-icon-60x60.png">
  <link rel="apple-touch-icon" sizes="120x120" href="https://eco.dameng.com/document/dm/icon/apple-touch-icon-120x120.png">
  <link rel="apple-touch-icon" sizes="76x76" href="https://eco.dameng.com/document/dm/icon/apple-touch-icon-76x76.png">
  <link rel="apple-touch-icon" sizes="152x152" href="https://eco.dameng.com/document/dm/icon/apple-touch-icon-152x152.png">
  <link rel="icon" type="image/png" href="https://eco.dameng.com/document/dm/icon/favicon-196x196.png" sizes="196x196">
  <link rel="icon" type="image/png" href="https://eco.dameng.com/document/dm/icon/favicon-160x160.png" sizes="160x160">
  <link rel="icon" type="image/png" href="https://eco.dameng.com/document/dm/icon/favicon-96x96.png" sizes="96x96">
  <link rel="icon" type="image/png" href="https://eco.dameng.com/document/dm/icon/favicon-16x16.png" sizes="16x16">
  <link rel="icon" type="image/png" href="https://eco.dameng.com/document/dm/icon/favicon-32x32.png" sizes="32x32">
  <meta name="msapplication-TileColor" content="#2f83cd">
  <meta name="msapplication-TileImage" content="/document/dm/icon/mstile-144x144.png">
  <!-- CSS -->
  <!-- build:css build/css/navy.css -->
  <link rel="stylesheet" href="%E5%87%BD%E6%95%B0%20%E8%BE%BE%E6%A2%A6%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3_files/navy.css">
  <!-- endbuild -->
  <!-- 
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/typeface-lato@0.0.75/index.min.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.3.0/css/font-awesome.min.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css">
   -->

   <script>
      window.addEventListener('load', () => {
        if(window.location.pathname.indexOf('document-preview') >=0){
          Array.from(document.getElementsByTagName('a'))
            .forEach(v=>{
              if(v.href && v.href.indexOf('document/'>=0))
                v.href = v.href.replace('document/','document-preview/')
            })
        }
      });
   </script>
  
  <!-- RSS -->
  <link rel="alternate" href="https://eco.dameng.com/document/dm/atom.xml" title="达梦技术文档" type="application/atom+xml">
  <!-- Open Graph -->
  <meta name="description" content="在值表达式中，除了可以使用常量、列名、集函数等之外，还可以使用函数作为组成成份。DM 中支持的函数分为数值函数、字符串函数、日期时间函数、空值判断函数、类型转换函数等。在这些函数中，对于字符串类型的参数或返回值，最大支持的长度为 32K-1。 本手册还给出了 DM 系统函数的详细介绍。下列各表列出了函数的简要说明。在本章各例中，如不特别说明，各例均使用示例库 BOOKSHOP，用户均为建表者 S">
<meta property="og:type" content="website">
<meta property="og:title" content="函数">
<meta property="og:url" content="https://hexo.io/zh-cn/pm/function">
<meta property="og:site_name" content="达梦技术文档">
<meta property="og:description" content="在值表达式中，除了可以使用常量、列名、集函数等之外，还可以使用函数作为组成成份。DM 中支持的函数分为数值函数、字符串函数、日期时间函数、空值判断函数、类型转换函数等。在这些函数中，对于字符串类型的参数或返回值，最大支持的长度为 32K-1。 本手册还给出了 DM 系统函数的详细介绍。下列各表列出了函数的简要说明。在本章各例中，如不特别说明，各例均使用示例库 BOOKSHOP，用户均为建表者 S">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://download.dameng.com/eco/docs/asset/pm/sql-manual/第8、9、10章/函数TO_CHAR（数值类型）.jpg">
<meta property="og:image" content="https://download.dameng.com/eco/docs/asset/pm/sql-manual/第8、9、10章/函数TO_CHAR（VARCHAR、CLOB、TEXT类型）.jpg">
<meta property="og:image" content="https://download.dameng.com/eco/docs/asset/pm/sql-manual/第8、9、10章/函数TO_CHAR（日期数据类型）.jpg">
<meta property="article:published_time" content="2023-03-18T08:29:25.617Z">
<meta property="article:modified_time" content="2023-03-18T08:29:25.617Z">
<meta property="article:author" content="dameng">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://download.dameng.com/eco/docs/asset/pm/sql-manual/第8、9、10章/函数TO_CHAR（数值类型）.jpg">
<meta name="twitter:site" content="hexojs">
<meta property="fb:admins" content="100000247608790">  
<meta name="generator" content="Hexo 5.4.2"></head>

<!-- onscroll="myFunction" -->
<body><svg aria-hidden="true" style="position: absolute; width: 0px; height: 0px; overflow: hidden;"><symbol id="icon-share-rig" viewBox="0 0 1024 1024"><path d="M529.92 373.12V192.256l429.76 304.448-429.696 304.384V622.016c-172.032 0.064-331.52 8.768-466.368 249.216 0-152.704 25.28-493.888 466.368-498.176z"></path></symbol><symbol id="icon-top-rig" viewBox="0 0 1024 1024"><path d="M85.333333 677.333333L499.242667 256 938.666667 677.333333l-63.573334 64.725334L499.2 385.450667l-350.293333 356.608z"></path></symbol><symbol id="icon-stop" viewBox="0 0 1024 1024"><path d="M352 128v768H256V128zM768 128v768h-96V128z"></path></symbol><symbol id="icon-restart" viewBox="0 0 1024 1024"><path d="M960 576v64l-18.56 0.064a448.192 448.192 0 0 1-872.896-64h64.768a384.128 384.128 0 0 0 740.8 64L768 640V576h192zM64 448V384h18.56a448.192 448.192 0 0 1 872.96 64h-64.832A384.128 384.128 0 0 0 149.824 384H256v64H64z"></path></symbol><symbol id="icon-share" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#B6B6B6" opacity=".2"></path><path d="M541.10208 445.31712v-86.75328l206.27456 146.10432-206.27456 146.1248v-85.97504c-82.55488 0.02048-159.10912 4.1984-223.8464 119.62368 0-73.3184 12.14464-237.07648 223.8464-239.12448z" fill="#222222"></path></symbol><symbol id="icon-cancel" viewBox="0 0 1024 1024"><path d="M512 64a448 448 0 1 1 0 896A448 448 0 0 1 512 64z m0 64a384 384 0 1 0 0 768A384 384 0 0 0 512 128z"></path><path d="M253.44 298.688l45.248-45.248 471.872 471.872-45.248 45.248z"></path><path d="M770.56 298.688l-45.248-45.248-471.872 471.872 45.248 45.248z"></path></symbol><symbol id="icon-posts" viewBox="0 0 1024 1024"><path d="M960 384v448H320V384h640z m-64 64H384v320h512V448z"></path><path d="M896 256v64-64z"></path><path d="M832 576v64H576V576zM512 576v64H448V576z"></path><path d="M900.48 256v64H256v448H192V256z"></path><path d="M772.48 128v64H128v544H64V128z"></path></symbol><symbol id="icon-personal-posts" viewBox="0 0 1024 1024"><path d="M960 384v448H320V384h640z m-128 192H576v64h256V576zM512 576H448v64h64V576zM896 256v64-64z"></path><path d="M900.48 256v64H256v448H192V256z"></path><path d="M772.48 128v64H128v544H64V128z"></path></symbol><symbol id="icon-logo-etlwendang" viewBox="0 0 11791 1024"><path d="M1959.377455 721.392485l38.725818-37.981091c-86.388364-104.261818-163.095273-185.437091-230.120728-242.036364 4.468364-17.873455 8.192-36.491636 11.915637-55.854545h198.097454v-52.130909h-189.905454c4.468364-40.96 7.447273-84.898909 7.447273-131.072V168.060121h-53.620364V213.488485a1218.870303 1218.870303 0 0 1-7.447273 119.901091h-168.308363v52.130909h160.116363c-25.320727 135.540364-84.898909 232.354909-177.245091 291.188363l32.768 43.93891c78.941091-52.130909 135.540364-128.837818 171.287273-229.376 69.259636 65.536 137.774545 142.242909 206.289455 230.120727zM1484.986182 333.389576l38.725818-39.470546c-35.746909-37.981091-78.941091-75.962182-130.327273-114.688l-37.236363 35.002182c55.109818 42.449455 97.559273 81.92 128.837818 119.156364z m-101.282909 519.819636c41.704727-70.004364 72.238545-104.261818 90.112-104.261818 9.681455 0 20.107636 5.957818 30.533818 18.618182 23.831273 26.810182 50.641455 45.428364 81.92 54.365091 31.278545 8.192 71.493818 12.660364 122.135273 13.405091 49.896727 0.744727 96.069818 1.489455 138.519272 1.489454h157.882182l13.405091-54.365091c-18.618182 1.489455-44.683636 2.234182-78.196364 2.978909-34.257455 0-67.770182 0.744727-100.538181 0.744728-61.067636 0-111.709091-0.744727-152.669091-1.489455-46.173091-1.489455-81.92-6.702545-105.751273-16.384-21.597091-10.426182-41.704727-26.065455-61.067636-46.917818a125.98303 125.98303 0 0 0-18.618182-17.128727v-280.017455h-158.626909v52.130909h107.240727V701.284848c-31.278545 13.405091-66.280727 52.130909-106.496 116.177455l40.215273 35.746909z m905.588363-370.874182v-126.603636c23.086545 20.107636 50.641455 46.917818 82.664728 79.685818l26.810181-40.96a1522.967273 1522.967273 0 0 0-109.474909-83.409454v-20.107637h107.985455V241.788121h-107.985455V168.060121h-50.641454v73.728h-132.561455v49.152h116.922182c-34.257455 55.854545-79.685818 104.261818-137.029818 145.966546l29.044364 43.194181c47.662545-40.215273 88.622545-90.112 123.624727-150.434909v152.669091h50.641454z m309.806546 0V302.855758c26.810182 62.557091 71.493818 120.645818 132.561454 172.776727l34.257455-42.449455c-63.301818-41.704727-108.730182-89.367273-137.029818-142.242909h105.751272V241.788121H2599.098182V168.060121h-50.641455v73.728h-118.411636v49.152h89.367273a466.695758 466.695758 0 0 1-121.390546 143.732364l29.044364 42.449454c47.662545-44.683636 88.622545-102.772364 121.390545-173.521454v178.734545h50.641455zM2123.217455 850.230303c288.954182-25.320727 463.965091-114.688 525.032727-268.101818v-42.449455h-285.975273a414.440727 414.440727 0 0 0 47.662546-55.109818L2368.232727 459.248485c-48.407273 64.791273-124.369455 116.922182-228.631272 155.648l24.576 43.194182c50.641455-19.362909 96.069818-42.449455 136.28509-69.259637h289.69891c-30.533818 55.109818-81.175273 99.793455-151.924364 134.050909-35.746909-32.768-79.685818-65.536-131.816727-99.793454L2271.418182 656.601212c45.428364 29.789091 84.154182 59.578182 116.177454 87.877818-77.451636 29.044364-174.266182 47.662545-290.443636 56.599273l26.065455 49.152z m1359.127272 0l29.044364-43.938909c-53.620364-36.491636-99.048727-87.877818-137.774546-154.903273 41.704727-87.877818 64.791273-194.373818 68.51491-318.743273h48.407272V281.258667h-196.608c5.957818-32.768 11.915636-68.514909 16.384-106.496L3258.181818 165.825939c-14.894545 141.498182-44.683636 253.952-88.622545 337.361455l33.512727 40.96c15.639273-26.810182 30.533818-57.344 43.938909-91.601455 20.107636 74.472727 44.683636 140.008727 73.728 197.352728-34.257455 63.301818-79.685818 114.688-137.774545 154.903272l27.554909 44.683637a499.587879 499.587879 0 0 0 137.774545-149.690182c37.236364 62.557091 81.92 113.198545 134.050909 150.434909zM2854.539636 512.124121c64.046545-43.194182 108.730182-93.835636 133.306182-152.669091v141.498182h49.896727v-96.814545c26.810182 17.873455 58.833455 41.704727 96.069819 71.493818l27.554909-41.704727a1735.214545 1735.214545 0 0 0-123.624728-68.51491v-8.192h135.540364V310.30303h-135.540364V168.060121h-49.896727V310.30303h-145.221818v46.917818h105.751273c-22.341818 40.96-62.557091 78.196364-119.901091 111.709091l26.065454 43.194182z m253.207273-218.949818A495.895273 495.895273 0 0 0 3165.090909 197.104485l-38.725818-17.873455c-13.405091 31.278545-32.768 62.557091-56.599273 94.580364l37.981091 19.362909z m-200.331636-0.744727l38.725818-17.873455c-13.405091-32.768-28.299636-64.046545-46.173091-93.090909l-42.449455 14.149818c17.873455 28.299636 34.257455 60.322909 49.896728 96.814546z m437.899636 303.848727c-29.789091-62.557091-53.620364-137.774545-72.238545-224.907636l9.681454-38.725819h110.219637c-2.978909 100.538182-18.618182 188.416-47.662546 263.633455z m-495.988364 251.717818c74.472727-20.852364 136.285091-48.407273 185.437091-82.664727a1083.516121 1083.516121 0 0 1 114.688 58.833454l29.044364-41.704727a1649.664 1649.664 0 0 0-102.772364-50.641454 299.969939 299.969939 0 0 0 82.664728-127.348364v-43.938909h-155.648c4.468364-13.405091 9.681455-26.810182 14.894545-40.96l-49.896727-5.957818c-5.213091 14.894545-11.170909 30.533818-17.873455 46.917818H2841.134545v46.917818h87.877819c-14.894545 29.789091-32.023273 60.322909-51.386182 93.090909 36.491636 13.405091 70.749091 27.554909 103.517091 41.704727-43.194182 24.576-96.069818 44.683636-157.137455 61.067637l25.320727 44.683636z m177.245091-137.029818A1569.574788 1569.574788 0 0 0 2941.672727 678.94303c14.894545-22.341818 28.299636-46.173091 40.215273-71.493818h128.093091c-17.873455 38.725818-46.173091 73.728-83.409455 103.517091z m633.018182 132.561455c41.704727 0 62.557091-22.341818 62.557091-65.536v-217.460364a1453.645576 1453.645576 0 0 0 69.259636-32.768v-52.875636c-22.341818 11.915636-45.428364 23.086545-69.259636 33.512727v-146.711273h71.493818V310.30303h-71.493818V169.549576h-52.130909V310.30303h-89.367273v51.386182h89.367273v168.308364c-32.768 11.915636-67.025455 22.341818-101.282909 30.533818l13.405091 52.130909a1546.20897 1546.20897 0 0 0 87.877818-30.533818v182.458182c0 20.852364-9.681455 32.023273-28.299636 32.023272-17.873455 0-37.236364-1.489455-56.599273-3.723636l11.170909 50.641455h63.301818z m300.125091 6.702545v-36.491636h201.821091V850.230303h49.896727v-244.270545h-125.114182v-91.601455h159.371637v-48.407273h-159.371637v-87.877818h140.008728V197.104485h-392.471273v233.099636c-0.744727 156.392727-27.554909 284.485818-80.430545 382.789818l41.704727 37.236364c49.152-96.814545 78.196364-208.523636 87.133091-335.872h151.924363v91.601455H3909.818182V850.230303h49.896727z m214.481455-520.564364h-288.209455V247.001212h288.209455v82.664727z m-140.008728 136.285091h-148.945454l0.744727-35.746909v-52.130909h148.200727v87.877818z m127.348364 300.125091h-201.821091v-112.453818h201.821091v112.453818z m822.923636-458.752V255.937939h-293.422545a924.889212 924.889212 0 0 0-43.194182-93.835636l-59.578182 10.426182a587.217455 587.217455 0 0 1 44.683637 83.409454h-307.572364v51.386182h659.083636z m-43.938909 257.675637l39.470546-39.470546c-55.854545-65.536-125.114182-130.327273-207.778909-195.863273l-36.491637 35.002182c87.133091 71.493818 155.648 137.774545 204.8 200.331637z m-579.397818-6.702546c83.409455-55.109818 153.413818-119.901091 210.013091-193.629091l-38.725818-34.257454c-55.854545 70.004364-124.369455 130.327273-205.544727 182.458181l34.257454 45.428364z m-7.447273 293.422546c119.156364-31.278545 220.439273-80.430545 303.848728-147.456 80.430545 62.557091 180.968727 110.219636 301.614545 144.47709l33.512727-49.896727c-116.177455-29.789091-213.736727-72.983273-294.167272-131.072 51.386182-49.896727 94.580364-108.730182 130.327272-177.245091l-49.152-21.597091a599.629576 599.629576 0 0 1-124.369454 164.584728 554.449455 554.449455 0 0 1-128.837818-159.371637l-46.173091 26.065455a661.162667 661.162667 0 0 0 134.050909 168.308363c-78.196364 59.578182-175.755636 104.261818-293.422546 134.05091l32.768 49.152z m1367.319273 1.489454l24.576-50.641454c-87.877818-43.194182-151.924364-102.027636-191.394909-177.989819h187.671273v-49.152h-46.917818v-202.565818h-131.816728c22.341818-30.533818 44.683636-67.770182 66.280728-110.964363V223.169939h-157.882182c8.936727-17.128727 16.384-35.002182 23.086545-53.620363l-52.130909-6.702546c-26.810182 70.749091-77.451636 131.072-151.924364 180.224l31.278546 41.704728c49.152-33.512727 90.112-72.238545 121.390545-115.432728h129.582546a861.494303 861.494303 0 0 1-64.046546 103.517091h-169.797818v202.565818h-52.875636v49.152h173.521454c-29.789091 74.472727-95.325091 135.540364-196.608 183.202909l35.002182 44.683637c110.219636-58.088727 180.968727-130.327273 212.247273-216.715637 41.704727 89.367273 112.453818 162.350545 210.757818 217.460364z m-577.163636-11.170909c43.194182 0 64.791273-22.341818 64.791272-66.280727v-215.226182c26.810182-11.915636 52.875636-25.320727 78.941091-38.725818v-54.365091c-26.065455 14.894545-52.130909 28.299636-78.941091 40.215273v-151.924364h75.962182V304.345212h-75.962182V168.060121h-53.620363v136.285091h-88.622546v51.386182h88.622546v173.521454c-33.512727 12.660364-67.770182 23.086545-102.772364 32.023273l13.405091 53.620364a1428.635152 1428.635152 0 0 0 89.367273-32.023273v179.479273c0 20.852364-10.426182 32.023273-29.789091 32.023273-17.873455 0-36.491636-1.489455-55.854546-3.723637l11.17091 51.386182h63.301818z m330.658909-266.612364h-87.877818v-155.648h103.517091c-1.489455 60.322909-6.702545 112.453818-15.639273 155.648z m172.776727 0h-121.390545c7.447273-41.704727 11.915636-93.835636 13.405091-155.648h107.985454v155.648z m521.309091 274.059637V585.852121h305.338182v-51.386182h-305.338182V252.95903h277.038545v-52.130909h-601.739636v52.130909h269.591273v281.506909h-299.380364v51.386182h299.380364v263.633455h55.109818z m148.945455-356.724364c36.491636-56.599273 66.280727-113.943273 88.622545-172.776727l-49.152-23.086546c-21.597091 56.599273-50.641455 113.198545-87.133091 171.287273l47.662546 24.576z m-352.256 2.978909l49.896727-24.576a1736.455758 1736.455758 0 0 0-80.430546-170.542545l-49.896727 24.576c28.299636 49.896727 55.109818 106.496 80.430546 170.542545z m1202.734545 24.576l52.130909-25.320727c-55.109818-90.112-114.688-172.776727-178.734545-247.249455l-48.407273 23.086546a1398.039273 1398.039273 0 0 1 87.133091 112.453818c-128.093091 11.915636-263.633455 21.597091-406.621091 27.554909 67.025455-55.109818 134.795636-131.072 201.821091-226.397091l-55.109818-18.618182c-96.814545 142.242909-177.989818 224.907636-243.525819 247.249455l10.426182 50.641454c193.629091-7.447273 368.64-17.873455 525.777455-32.023272 17.873455 28.299636 36.491636 57.344 55.109818 88.622545z m-473.646545 330.658909v-37.236363h388.747636v37.236363h54.365091V540.423758h-497.477818v310.551272h54.365091z m388.747636-88.622545h-388.747636v-170.542546h388.747636v170.542546z m664.296727 13.405091c83.409455 0 147.456-24.576 192.139637-72.983273 42.449455-46.173091 64.046545-110.964364 64.046545-192.884364 0-83.409455-20.107636-148.200727-59.578182-192.884363-43.194182-49.152-106.496-72.983273-190.650182-72.983273h-190.650181V775.757576h184.692363z m-10.426182-52.875637h-113.198545V296.897939h119.901091c70.004364 0 120.645818 17.873455 153.413818 54.365091 30.533818 34.257455 46.173091 87.133091 46.173091 158.626909 0 69.259636-17.128727 122.135273-49.896727 157.882182-35.002182 36.491636-87.133091 55.109818-156.392728 55.109818zM8149.550545 775.757576V352.752485h2.234182L8335.732364 775.757576h55.109818l183.947636-423.005091h2.234182V775.757576h61.067636V244.022303h-75.962181l-197.352728 453.538909h-2.234182l-198.097454-453.538909h-75.962182V775.757576h61.067636z m985.274182 0v-52.875637H8806.4v-195.118545h297.890909v-52.875636h-297.890909V296.897939h315.764364V244.022303h-376.832V775.757576h389.492363z m291.933091 0V296.897939h187.671273V244.022303H9178.763636v52.875636h187.671273V775.757576h60.322909z m621.847273 0v-52.875637h-307.572364V244.022303h-60.322909V775.757576h367.895273z m948.782545 77.451636l29.044364-44.683636c-119.156364-43.938909-218.205091-99.048727-297.146182-166.074182 72.983273-78.941091 128.093091-177.989818 164.584727-295.656727h116.177455V293.174303h-284.485818c-23.831273-51.386182-49.152-95.325091-77.451637-131.072l-53.620363 19.362909a572.291879 572.291879 0 0 1 74.472727 111.709091h-308.317091v53.620364h114.688c33.512727 114.688 93.090909 214.481455 179.479273 299.380363-80.430545 72.983273-183.202909 125.858909-308.317091 159.371637l28.299636 46.917818c126.603636-36.491636 232.354909-93.835636 317.253819-172.032 80.430545 69.259636 181.713455 126.603636 305.338181 172.776727z m-305.338181-244.270545c-77.451636-74.472727-131.816727-161.605818-163.84-262.144h309.806545c-31.278545 102.772364-79.685818 189.905455-145.966545 262.144z m1047.086545 241.291636V425.735758h-153.413818V167.315394h-54.365091v258.420364h-166.074182v52.130909h320.232727v117.666909h-301.614545v50.641454h301.614545v120.645818h-333.637818v52.13091h333.637818V850.230303h53.620364z m-483.328-2.978909v-379.810909c20.852364 27.554909 44.683636 64.046545 72.983273 109.474909l30.533818-44.683636c-35.002182-46.173091-69.259636-87.877818-103.517091-124.369455v-43.194182h88.622545v-51.386182h-88.622545v-145.221818h-54.365091v145.221818h-101.282909v51.386182h100.538182c-23.086545 91.601455-61.812364 173.521455-116.922182 245.76l23.086545 57.344c38.725818-58.088727 70.004364-122.135273 94.580364-193.629091v373.108364h54.365091z m423.749818-459.496727a895.100121 895.100121 0 0 0 80.430546-160.116364l-47.662546-22.341818c-19.362909 52.130909-46.173091 105.006545-78.941091 158.626909l46.173091 23.831273z m-247.249454-1.489455l46.173091-23.086545c-23.831273-55.109818-49.152-106.496-75.962182-152.669091l-46.917818 23.086545a1165.28097 1165.28097 0 0 1 76.706909 152.669091z" fill="#FFFFFF"></path><path d="M15.515152 20.883394L639.565576 209.454545v546.443637L15.515152 944.469333V20.883394z m899.878787 0.03103v923.523879l-310.365091-94.083879 130.792728-39.749818V154.779152l-130.792728-39.811879L915.393939 20.914424zM195.801212 253.952v457.479758l263.478303-79.623758V333.575758L195.801212 253.98303z" fill="#4771F8"></path></symbol><symbol id="icon-huowudui" viewBox="0 0 1024 1024"><path d="M966.208 246.752L534.144 21.408a47.968 47.968 0 0 0-44.128-0.128L58.08 243.136A47.968 47.968 0 0 0 32 285.824V744.64c0 18.208 10.304 34.848 26.592 42.976l432 215.36a48 48 0 0 0 42.816 0l432-215.36A48 48 0 0 0 992 744.672V289.344c0-17.92-9.952-34.304-25.792-42.592zM508.384 463.68l-162.176-79.808 367.36-196.704 158.4 82.624-363.584 193.888z m3.488-381.696l132.992 69.376-369.312 197.76-144.896-71.328 381.216-195.808zM96 332.096l153.216 75.392v168.256a32 32 0 0 0 64 0v-136.736L480 521.024v405.184L96 734.752V332.096z m448 594.112V517.184l384-204.736v422.304l-384 191.456z"></path></symbol><symbol id="icon-a-solidcloudadaptation" viewBox="0 0 1024 1024"><path d="M128 128l512 128v512l-512 128V128z m64 81.984v603.968l384-96V305.984l-384-96zM896 64v896h-256v-64h192V128h-192V64z"></path><path d="M128 173.952v704l512-111.872V285.824z"></path><path d="M834.304 119.168v790.784H640v-64h130.24V183.168H640v-64z"></path></symbol><symbol id="icon-a-cloudadaptation" viewBox="0 0 1024 1024"><path d="M128 128l512 128v512l-512 128V128z m64 81.984v603.968l384-96V305.984l-384-96zM896 64v896h-256v-64h192V128h-192V64z"></path></symbol><symbol id="icon-area" viewBox="0 0 1024 1024"><path d="M527.616 632c-97.152 0-176.192-74.56-176.192-166.208s79.04-166.208 176.192-166.208 176.128 74.56 176.128 166.208-78.976 166.208-176.128 166.208z m0-273.728c-62.912 0-114.048 48.256-114.048 107.52 0 59.264 51.2 107.52 114.048 107.52s113.92-48.256 113.92-107.52c0-59.264-51.072-107.52-113.92-107.52z m0 645.12a32.512 32.512 0 0 1-17.28-4.864c-15.808-9.984-386.944-246.72-386.944-532.736 0-210.24 181.312-381.248 404.224-381.248 222.848 0 404.16 171.072 404.16 381.248 0 282.496-370.944 522.56-386.752 532.608a32.384 32.384 0 0 1-17.408 5.056z m0-860.16c-188.608 0-342.016 144.64-342.016 322.56 0 221.824 269.952 422.72 341.888 472.32 71.808-50.112 342.144-253.312 342.144-472.32 0-177.92-153.472-322.56-342.016-322.56z"></path></symbol><symbol id="icon-mail" viewBox="0 0 1024 1024"><path d="M960 160v704H64v-704h896z m-64 64H128v576h768v-576z"></path><path d="M920.32 160l39.68 48.448L509.632 608 64 208.32l39.936-48.192L509.824 524.16z"></path></symbol><symbol id="icon-me" viewBox="0 0 1024 1024"><path d="M704 576l192 128v256H128v-256l192-128h384z m64 192h-128v64h128v-64zM512 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448z"></path></symbol><symbol id="icon-product" viewBox="0 0 1024 1024"><path d="M288 512l193.984 112v224L288 960l-193.984-112v-224L288 512z m448 0l193.984 112v224L736 960l-193.984-112v-224L736 512zM512 64l221.696 128v256L512 576 290.304 448V192L512 64z"></path></symbol><symbol id="icon-prompt" viewBox="0 0 1024 1024"><path d="M512 53.333333a373.333333 373.333333 0 0 1 153.088 713.941334l-12.885333 154.453333a53.333333 53.333333 0 0 1-47.701334 48.64l-5.461333 0.298667H424.96a53.333333 53.333333 0 0 1-52.394667-43.477334l-0.768-5.418666-12.885333-154.496A373.333333 373.333333 0 0 1 512 53.333333z m87.978667 723.882667H423.978667l10.794666 129.450667h154.410667l10.794667-129.450667zM512 117.333333a309.333333 309.333333 0 0 0-111.274667 598.058667l-6.570666-2.688 24.32-2.005333 0.170666 2.474666h186.666667l0.256-2.474666 24.149333 2.005333 4.224-1.664a309.461333 309.461333 0 0 0 186.538667-261.12l0.64-11.562667 0.213333-11.690666A309.333333 309.333333 0 0 0 512 117.333333z m-96 213.333334v108.202666l81.706667-40.832h28.586666l81.706667 40.874667V330.666667h64v160l-46.293333 28.586666L512 462.464l-113.706667 56.874667L352 490.666667V330.666667h64z"></path></symbol><symbol id="icon-question" viewBox="0 0 1024 1024"><path d="M938.666667 96l32 32v640l-32 32H455.466667l-206.506667 103.253333-46.293333-28.586666v-74.666667H85.333333L53.333333 768V128L85.333333 96h853.333334z m-32 64H117.333333v576H234.666667l32 32v54.869333l167.04-83.498666 14.293333-3.370667h458.666667V160z m-259.626667 309.077333l57.216 28.586667-14.293333 28.629333c-7.04 14.08-20.650667 33.28-42.026667 52.309334-35.584 31.616-80.981333 50.730667-135.936 50.730666s-100.352-19.114667-135.936-50.773333a191.488 191.488 0 0 1-39.082667-46.762667l-2.944-5.504-14.293333-28.586666 57.216-28.629334 14.336 28.586667c3.626667 7.338667 12.714667 20.096 27.306667 33.066667 24.405333 21.717333 55.04 34.602667 93.397333 34.602666 38.4 0 68.992-12.885333 93.44-34.56 12.757333-11.392 21.290667-22.613333 25.642667-30.08l1.621333-2.986666 14.336-28.629334zM693.333333 288v85.333333h-64v-85.333333h64z m-298.666666 0v85.333333h-64v-85.333333h64z"></path></symbol><symbol id="icon-personal-post" viewBox="0 0 1024 1024"><path d="M768 128v320h128v448H128V128h640z m64 384H320v320h512V512z m-128-320H192v640h64V448h448V192z m64 512v64H512v-64h256z m-320 0v64H384v-64h64z"></path></symbol><symbol id="icon-personal-out" viewBox="0 0 1024 1024"><path d="M512 128v64H192v640h320v64H128V128h384z m244.992 202.88l181.056 180.992-181.056 181.056-45.248-45.248 103.68-103.744L320 544v-64l495.552-0.064-103.808-103.808 45.248-45.248z"></path></symbol><symbol id="icon-personal-product" viewBox="0 0 1024 1024"><path d="M288 512l193.984 112v224L288 960l-193.984-112v-224L288 512z m448 0l193.984 112v224L736 960l-193.984-112v-224L736 512z m-448 73.92l-130.048 75.008v150.08L288 886.016l129.984-75.008v-150.08L288 585.92z m448 0l-130.048 75.008v150.08l130.048 75.008 129.984-75.008v-150.08L736 585.92zM512 64l221.696 128v256L512 576 290.304 448V192L512 64z m0 73.92L354.24 228.928v182.08L512 502.016l157.696-91.008V228.928L512 137.92z"></path></symbol><symbol id="icon-personal-me" viewBox="0 0 1024 1024"><path d="M704 576l192 128v256H128v-256l192-128h384z m-19.392 64H339.328L192 738.24V896h640v-157.76L684.608 640zM512 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448z m0 64a160 160 0 1 0 0 320 160 160 0 0 0 0-320z"></path><path d="M640 768h128v64h-128z"></path></symbol><symbol id="icon-personal-adaptable" viewBox="0 0 1024 1024"><path d="M320 896v-64h352a192 192 0 0 0 11.264-383.68L672 448v-32a224 224 0 0 0-211.712-223.68L448 192V128a288 288 0 0 1 286.976 263.744 256 256 0 0 1-50.24 503.936L672 896H320z m320-288v64H256v-64h384z m-128-256v64H320v-64h192zM256 832v64H192v-64h64zM192 608v64H128v-64h64z m64-256v64H192v-64h64zM384 128v64H320V128h64z"></path></symbol><symbol id="icon-control-question" viewBox="0 0 1024 1024"><path d="M921.6 153.6v553.8816h-273.066667L512 870.4l-134.519467-162.9184h-273.066666L102.4 153.6h819.2zM500.5312 526.472533a31.573333 31.573333 0 0 0-22.528 8.6016 28.740267 28.740267 0 0 0-9.0112 22.1184c0 9.0112 2.8672 16.384 9.0112 22.1184 6.144 5.7344 13.5168 9.0112 22.528 9.0112s16.384-2.8672 22.528-8.6016a29.969067 29.969067 0 0 0 9.4208-22.528 30.242133 30.242133 0 0 0-9.0112-22.1184 32.5632 32.5632 0 0 0-22.9376-8.6016zM507.904 290.133333c-30.3104 0-54.0672 8.6016-71.68 25.8048-18.0224 17.2032-26.624 40.96-26.624 71.2704h46.6944c0-17.2032 3.2768-30.72 10.24-40.1408 7.7824-11.4688 20.48-16.7936 38.5024-16.7936 13.9264 0 24.9856 3.6864 32.768 11.4688 7.3728 7.7824 11.4688 18.432 11.4688 31.9488 0 10.24-3.6864 20.0704-11.0592 29.0816l-4.9152 5.7344c-26.624 23.7568-42.5984 40.96-47.9232 52.0192-5.7344 11.0592-8.192 24.576-8.192 40.1408v5.7344h47.104v-5.7344c0-9.8304 2.048-18.432 6.144-26.624a63.488 63.488 0 0 1 16.384-20.48c19.6608-17.2032 31.5392-28.2624 35.2256-32.3584 9.8304-13.1072 15.1552-29.9008 15.1552-50.3808 0-24.9856-8.192-44.6464-24.576-58.9824-16.384-14.7456-38.0928-21.7088-64.7168-21.7088z"></path></symbol><symbol id="icon-control-cloud" viewBox="0 0 1024 1024"><path d="M512 153.6a238.967467 238.967467 0 0 1 236.782933 206.677333A273.066667 273.066667 0 0 0 443.733333 631.466667h34.133334l0.136533-8.192a238.933333 238.933333 0 0 1 271.223467-228.5568l1.706666 0.238933 7.850667 1.262933c2.491733 0.443733 4.949333 0.9216 7.406933 1.4336l-6.4512-1.262933c3.072 0.546133 6.0416 1.160533 9.045334 1.8432l-2.594134-0.580267c2.628267 0.546133 5.256533 1.160533 7.850667 1.774934l-5.256533-1.194667c2.798933 0.6144 5.597867 1.297067 8.362666 2.013867l-3.072-0.8192c2.525867 0.648533 5.051733 1.297067 7.543467 2.013866l-4.471467-1.194666 6.656 1.809066c5.12 1.501867 10.171733 3.1744 15.1552 4.983467l-1.9456-0.682667c2.389333 0.8192 4.846933 1.7408 7.236267 2.696534l-5.290667-2.013867 8.021334 3.106133-2.730667-1.092266 6.724267 2.730666-3.9936-1.6384c2.321067 0.955733 4.676267 1.9456 6.9632 2.9696l-2.9696-1.297066c2.56 1.092267 5.12 2.2528 7.645866 3.413333l-4.676266-2.116267c2.56 1.1264 5.12 2.321067 7.611733 3.549867l-2.935467-1.4336 6.9632 3.413333-4.027733-1.979733 6.109867 3.072c4.7104 2.491733 9.3184 5.12 13.824 7.8848l-1.911467-1.194667c1.9456 1.194667 3.8912 2.389333 5.802667 3.652267l-3.8912-2.4576c2.4576 1.501867 4.881067 3.072 7.304533 4.642133l-3.413333-2.184533c2.218667 1.365333 4.437333 2.833067 6.5536 4.3008l-3.140267-2.116267c2.116267 1.4336 4.232533 2.8672 6.314667 4.369067l-3.1744-2.2528c2.048 1.399467 4.027733 2.833067 6.007466 4.266667l-2.833066-2.048 6.144 4.539733-3.310934-2.491733c2.184533 1.604267 4.334933 3.242667 6.4512 4.9152l-3.140266-2.423467c2.048 1.536 4.027733 3.106133 6.007466 4.7104l-2.8672-2.286933c2.321067 1.8432 4.642133 3.720533 6.894934 5.632l-4.027734-3.345067 4.573867 3.7888c4.334933 3.754667 8.533333 7.5776 12.629333 11.605333l-2.4576-2.389333c1.911467 1.8432 3.7888 3.6864 5.632 5.597867l-3.1744-3.208534c1.809067 1.774933 3.618133 3.618133 5.358934 5.461334l-2.184534-2.2528c1.6384 1.672533 3.2768 3.345067 4.846934 5.085866l-2.6624-2.833066c1.809067 1.877333 3.549867 3.754667 5.290666 5.700266l-2.628266-2.8672c1.911467 2.048 3.7888 4.164267 5.632 6.314667l-3.003734-3.413333c1.6384 1.809067 3.242667 3.652267 4.778667 5.5296l-1.774933-2.116267 4.437333 5.290667-2.628267-3.1744c1.7408 2.116267 3.4816 4.232533 5.154134 6.382933l-2.56-3.208533c1.774933 2.1504 3.4816 4.369067 5.154133 6.587733l-2.594133-3.413333c1.570133 2.048 3.140267 4.096 4.642133 6.178133l-2.048-2.7648 4.5056 6.144-2.4576-3.3792 4.334933 6.075733-1.877333-2.6624c1.604267 2.286933 3.1744 4.573867 4.7104 6.929067l-2.833067-4.266667a239.069867 239.069867 0 0 1 15.906134 26.794667l-1.160534-2.184533c1.024 1.911467 1.979733 3.857067 2.935467 5.802666l-1.809067-3.618133c1.194667 2.3552 2.3552 4.7104 3.4816 7.099733l-1.672533-3.4816a236.8512 236.8512 0 0 1 20.616533 64.170667l1.1264 7.304533a239.104 239.104 0 0 1 1.706667 16.657067l0.4096 7.9872A238.933333 238.933333 0 0 1 716.8 870.4H307.2a238.933333 238.933333 0 0 1-34.0992-475.477333L273.066667 392.533333a238.933333 238.933333 0 0 1 238.933333-238.933333z"></path></symbol><symbol id="icon-i-document" viewBox="0 0 1024 1024"><path d="M0 32h474.048L568.96 152H1024V992H0V32z m796.416 720H227.584v120h568.832V752z" fill="#FFDF71"></path></symbol><symbol id="icon-link" viewBox="0 0 1024 1024"><path d="M240.448 466.752L285.696 512l-45.248 45.248a160 160 0 0 0 218.624 233.472l7.68-7.232 90.496-90.496a160 160 0 0 0 7.232-218.56l-7.232-7.68 45.248-45.312a224 224 0 0 1 8.448 307.84l-8.448 8.96L512 828.8a224 224 0 0 1-325.248-307.84L195.2 512l45.248-45.184zM512 195.2a224 224 0 0 1 325.248 307.84L828.8 512l-45.248 45.248L738.304 512l45.248-45.248a160 160 0 0 0-218.624-233.472l-7.68 7.168-90.496 90.496a160 160 0 0 0-7.232 218.624l7.232 7.68-45.248 45.248a224 224 0 0 1-8.448-307.84l8.448-8.96L512 195.2z" fill="#666666"></path></symbol><symbol id="icon-i-iso" viewBox="0 0 1024 1024"><path d="M35.328 0h953.344c19.52 0 35.328 15.808 35.328 35.328v953.344a35.328 35.328 0 0 1-35.328 35.328H35.328A35.328 35.328 0 0 1 0 988.672V35.328C0 15.808 15.808 0 35.328 0z" fill="#6C6CE5"></path><path d="M0 0h1024v1024H0z" fill="#6C6CE5"></path><path d="M306.304 562.304h411.456V644.48c0 45.44-92.16 82.304-205.76 82.304S306.304 690.048 306.304 644.544V562.304z" fill="#E5E5FF"></path><path d="M306.304 562.304a205.696 82.304 0 1 0 411.392 0 205.696 82.304 0 1 0-411.392 0Z" fill="#FFFFFF"></path><path d="M306.304 438.848h411.456V521.024c0 45.44-92.16 82.304-205.76 82.304S306.304 566.592 306.304 521.088V438.848z" fill="#E5E5FF"></path><path d="M306.304 438.848a205.696 82.304 0 1 0 411.392 0 205.696 82.304 0 1 0-411.392 0Z" fill="#FFFFFF"></path><path d="M306.304 315.456h411.456V397.632c0 45.44-92.16 82.304-205.76 82.304S306.304 443.2 306.304 397.696V315.456z" fill="#E5E5FF"></path><path d="M306.304 315.456a205.696 82.304 0 1 0 411.392 0 205.696 82.304 0 1 0-411.392 0Z" fill="#FFFFFF"></path><path d="M717.376 527.296v-22.272l9.92 5.888c45.248 28.224 72.704 65.472 72.704 106.24 0 85.504-120.768 155.328-272.704 159.744L512 777.152c-159.04 0-288-71.68-288-160 0-40.64 27.264-77.76 72.192-105.984l10.304-6.144v22.336l-0.128 0.064c-37.696 23.68-59.328 52.352-62.72 81.728l-0.448 8c0 74.688 118.912 140.8 268.8 140.8s268.8-66.112 268.8-140.8c0-29.44-18.624-58.624-53.184-83.072l-10.24-6.784zM512 192c159.04 0 288 71.68 288 160 0 43.648-31.488 83.2-82.56 112.128V448l-10.56 0.064c45.952-25.6 73.92-59.84 73.92-96.064 0-74.752-118.912-140.8-268.8-140.8S243.2 277.248 243.2 352c0 36.224 27.968 70.4 73.92 96.064L306.56 448l-0.064 16.064C255.488 435.264 224 395.648 224 352c0-85.504 120.768-155.392 272.704-159.808L512 192z" fill="#FFFFFF" fill-opacity=".594"></path></symbol><symbol id="icon-i-txt" viewBox="0 0 1024 1024"><path d="M35.328 0h953.344c19.52 0 35.328 15.808 35.328 35.328v953.344a35.328 35.328 0 0 1-35.328 35.328H35.328A35.328 35.328 0 0 1 0 988.672V35.328C0 15.808 15.808 0 35.328 0z" fill="#65ADFF"></path><path d="M672 320a32 32 0 1 1 0 64h-128v288a32 32 0 1 1-64 0V384h-128a32 32 0 0 1 0-64h320z" fill="#FFFFFF"></path></symbol><symbol id="icon-i-exe" viewBox="0 0 1024 1024"><path d="M35.328 0h953.344c19.52 0 35.328 15.808 35.328 35.328v953.344a35.328 35.328 0 0 1-35.328 35.328H35.328A35.328 35.328 0 0 1 0 988.672V35.328C0 15.808 15.808 0 35.328 0z" fill="#FCC103"></path><path d="M369.152 640v-38.4h-159.36V518.656h143.616v-38.4H209.792V404.224h152.832v-38.4h-197.76V640h204.288z m72.192 0L512 534.016 582.656 640h54.912L538.88 498.304l92.544-132.48h-54.912L512 462.592 447.488 365.824h-54.912l91.776 132.48L386.432 640h54.912z m429.312 0v-38.4h-159.36V518.656h143.616v-38.4h-143.616V404.224h152.832v-38.4h-197.76V640h204.288z" fill="#FFFFFF"></path></symbol><symbol id="icon-i-unknown" viewBox="0 0 1024 1024"><path d="M35.328 0h953.344c19.52 0 35.328 15.808 35.328 35.328v953.344a35.328 35.328 0 0 1-35.328 35.328H35.328A35.328 35.328 0 0 1 0 988.672V35.328C0 15.808 15.808 0 35.328 0z" fill="#A6A6A6"></path><path d="M558.72 595.84v-10.88c0-15.36 3.2-29.44 10.24-42.24 5.76-11.52 14.72-23.04 26.88-33.28 30.08-26.24 48-42.88 53.76-49.92 16-20.48 24.32-46.72 24.32-78.08 0-38.4-12.8-69.12-38.4-91.52-25.6-23.04-58.88-33.92-99.84-33.92-47.36 0-84.48 13.44-111.36 40.96C397.44 323.84 384 361.6 384 425.6h64c0-28.16 8.96-68.48 20.48-83.84 12.8-18.56 33.92-27.52 62.72-27.52 23.04 0 41.6 6.4 54.4 19.2 12.16 12.8 18.56 30.08 18.56 52.48 0 16.64-6.4 32-17.92 46.72l-10.88 12.16c-39.68 35.2-64 61.44-72.32 79.36-8.96 16.64-12.8 37.12-12.8 60.8v10.88h68.48z m-34.56 126.08c12.8 0 24.32-4.48 33.28-12.8a45.44 45.44 0 0 0 14.08-33.28c0-13.44-4.48-24.32-13.44-32.64a45.824 45.824 0 0 0-33.92-12.8c-12.8 0-24.32 3.84-33.28 12.8-8.96 8.32-13.44 19.2-13.44 32.64a45.888 45.888 0 0 0 46.72 46.08z" fill="#FFFFFF"></path><path d="M384 425.6h64a32 32 0 0 1-64 0z" fill="#FFFFFF"></path></symbol><symbol id="icon-damengjishushequ_hei" viewBox="0 0 5771 1024"><path d="M1981.967515 721.392485l38.725818-37.981091c-86.388364-104.261818-163.095273-185.437091-230.120727-242.036364 4.468364-17.873455 8.192-36.491636 11.915636-55.854545h198.097455v-52.130909h-189.905455c4.468364-40.96 7.447273-84.898909 7.447273-131.072V168.060121h-53.620363V213.488485a1218.870303 1218.870303 0 0 1-7.447273 119.901091H1588.751515v52.130909h160.116364c-25.320727 135.540364-84.898909 232.354909-177.245091 291.188363l32.768 43.93891c78.941091-52.130909 135.540364-128.837818 171.287273-229.376 69.259636 65.536 137.774545 142.242909 206.289454 230.120727zM1507.576242 333.389576l38.725819-39.470546c-35.746909-37.981091-78.941091-75.962182-130.327273-114.688l-37.236364 35.002182c55.109818 42.449455 97.559273 81.92 128.837818 119.156364zM1406.293333 853.209212c41.704727-70.004364 72.238545-104.261818 90.112-104.261818 9.681455 0 20.107636 5.957818 30.533819 18.618182 23.831273 26.810182 50.641455 45.428364 81.92 54.365091 31.278545 8.192 71.493818 12.660364 122.135272 13.405091 49.896727 0.744727 96.069818 1.489455 138.519273 1.489454h157.882182l13.405091-54.365091c-18.618182 1.489455-44.683636 2.234182-78.196364 2.978909-34.257455 0-67.770182 0.744727-100.538182 0.744728-61.067636 0-111.709091-0.744727-152.669091-1.489455-46.173091-1.489455-81.92-6.702545-105.751272-16.384-21.597091-10.426182-41.704727-26.065455-61.067637-46.917818a125.98303 125.98303 0 0 0-18.618182-17.128727v-280.017455H1365.333333v52.130909h107.240728V701.284848c-31.278545 13.405091-66.280727 52.130909-106.496 116.177455l40.215272 35.746909z m905.588364-370.874182v-126.603636c23.086545 20.107636 50.641455 46.917818 82.664727 79.685818l26.810182-40.96a1522.967273 1522.967273 0 0 0-109.474909-83.409454v-20.107637h107.985455V241.788121h-107.985455V168.060121h-50.641455v73.728H2128.678788v49.152h116.922182c-34.257455 55.854545-79.685818 104.261818-137.029818 145.966546l29.044363 43.194181c47.662545-40.215273 88.622545-90.112 123.624727-150.434909v152.669091h50.641455z m309.806545 0V302.855758c26.810182 62.557091 71.493818 120.645818 132.561455 172.776727l34.257455-42.449455c-63.301818-41.704727-108.730182-89.367273-137.029819-142.242909h105.751273V241.788121h-135.540364V168.060121h-50.641454v73.728H2452.635152v49.152h89.367272a466.695758 466.695758 0 0 1-121.390545 143.732364l29.044363 42.449454c47.662545-44.683636 88.622545-102.772364 121.390546-173.521454v178.734545h50.641454zM2145.807515 850.230303c288.954182-25.320727 463.965091-114.688 525.032727-268.101818v-42.449455h-285.975272a414.440727 414.440727 0 0 0 47.662545-55.109818l-41.704727-25.320727c-48.407273 64.791273-124.369455 116.922182-228.631273 155.648l24.576 43.194182c50.641455-19.362909 96.069818-42.449455 136.285091-69.259637H2612.751515c-30.533818 55.109818-81.175273 99.793455-151.924363 134.050909-35.746909-32.768-79.685818-65.536-131.816728-99.793454l-35.002182 33.512727c45.428364 29.789091 84.154182 59.578182 116.177455 87.877818-77.451636 29.044364-174.266182 47.662545-290.443636 56.599273l26.065454 49.152z m787.176727-8.192c43.194182 0 64.791273-22.341818 64.791273-67.025455v-213.736727c26.810182-12.660364 53.620364-26.065455 80.430546-40.96v-52.130909c-26.065455 14.894545-52.875636 28.299636-80.430546 41.704727v-154.158545h78.941091V304.345212h-78.941091V168.060121h-52.130909v136.285091h-90.112v51.386182h90.112v175.755636a996.38303 996.38303 0 0 1-104.261818 32.768L2854.787879 617.130667a1634.490182 1634.490182 0 0 0 90.856727-33.512728v177.989819c0 22.341818-10.426182 33.512727-30.533818 33.512727-17.873455 0-36.491636-1.489455-55.854546-3.723637l11.17091 50.641455h62.55709z m173.521455 10.426182c83.409455-29.789091 154.158545-67.770182 212.247273-113.943273 50.641455 41.704727 113.943273 79.685818 188.416 112.453818l28.299636-44.683636c-70.749091-29.044364-131.072-62.557091-180.224-100.538182 60.322909-58.088727 103.517091-128.093091 129.582546-210.013091V448.077576h-150.43491v-121.390546h179.479273V275.300848h-179.479273V169.549576h-52.130909v105.751272h-178.734545v51.386182h178.734545v121.390546h-164.584727v50.641454h39.470546c20.852364 76.706909 61.812364 145.221818 124.369454 206.289455-54.365091 42.449455-121.390545 76.706909-200.331636 102.772363l25.320727 44.683637z m210.757818-178.734546c-53.620364-51.386182-90.856727-109.474909-110.219636-175.010909h224.162909a462.910061 462.910061 0 0 1-113.943273 175.010909z m641.954909 175.010909V395.201939h2.978909c50.641455 138.519273 141.498182 264.378182 272.570182 376.087273l35.746909-45.428364c-122.88-96.814545-208.523636-207.034182-257.675636-330.658909h236.078545V343.815758h-289.698909V165.825939h-53.620363v177.989819h-288.954182v51.386181h235.333818c-52.875636 135.540364-140.008727 246.504727-260.654545 332.893091l29.044363 47.662546c132.561455-98.304 227.141818-225.652364 282.251637-380.555637h2.978909v453.538909h53.620363z m180.224-530.245818l42.449455-30.533818c-23.831273-34.257455-58.088727-74.472727-102.772364-120.645818l-41.704727 26.065454c43.194182 45.428364 76.706909 87.133091 102.027636 125.114182z m364.916364 530.245818V533.721212c29.789091 20.852364 59.578182 46.917818 90.112 78.196364l29.789091-46.173091a684.342303 684.342303 0 0 0-119.901091-87.133091c41.704727-53.620364 72.983273-107.240727 92.346182-160.861091V272.321939h-93.835637l15.639273-5.957818c-9.681455-31.278545-23.086545-64.791273-39.470545-102.027636l-51.386182 14.149818c15.639273 29.789091 29.044364 61.067636 40.96 93.835636h-114.688v51.386182h188.416c-34.257455 81.175273-103.517091 164.584727-206.289455 249.483637l16.384 56.599272a1511.641212 1511.641212 0 0 0 99.048728-90.856727v309.806545h52.875636z m511.627636-23.831272V772.033939H4828.315152V445.843394h169.797818v-52.875636H4828.315152V171.03903h-55.109819v221.928728h-166.074181v52.875636h166.074181V772.033939h-192.139636v52.875637h434.920727z m734.301091-5.957818v-51.386182h-561.524363V249.235394h539.927272V197.849212H5137.37697v621.102546h612.910545z m-484.817454-105.006546c85.643636-37.236364 160.861091-90.856727 226.397091-160.861091a1762.707394 1762.707394 0 0 1 152.66909 158.626909l41.704728-41.704727a2653.680485 2653.680485 0 0 0-158.626909-158.626909c44.683636-56.599273 83.409455-122.88 116.922181-198.842182l-48.407272-26.065454c-31.278545 70.749091-67.770182 133.306182-110.219637 187.671272-58.833455-52.130909-122.88-104.261818-191.394909-156.392727l-38.725818 37.236364a3366.043152 3366.043152 0 0 1 195.118546 160.116363 610.800485 610.800485 0 0 1-216.715637 150.434909l31.278546 48.407273z" fill="#000000"></path><path d="M15.515152 20.883394L639.565576 209.454545v546.443637L15.515152 944.469333V20.883394z m899.878787 0.03103v923.523879l-310.365091-94.083879 130.792728-39.749818V154.779152l-130.792728-39.811879L915.393939 20.914424zM195.801212 253.952v457.479758l263.478303-79.623758V333.575758L195.801212 253.98303z" fill="#4771F8"></path></symbol><symbol id="icon-damengjishushequ" viewBox="0 0 5771 1024"><path d="M1981.967515 721.392485l38.725818-37.981091c-86.388364-104.261818-163.095273-185.437091-230.120727-242.036364 4.468364-17.873455 8.192-36.491636 11.915636-55.854545h198.097455v-52.130909h-189.905455c4.468364-40.96 7.447273-84.898909 7.447273-131.072V168.060121h-53.620363V213.488485a1218.870303 1218.870303 0 0 1-7.447273 119.901091H1588.751515v52.130909h160.116364c-25.320727 135.540364-84.898909 232.354909-177.245091 291.188363l32.768 43.93891c78.941091-52.130909 135.540364-128.837818 171.287273-229.376 69.259636 65.536 137.774545 142.242909 206.289454 230.120727zM1507.576242 333.389576l38.725819-39.470546c-35.746909-37.981091-78.941091-75.962182-130.327273-114.688l-37.236364 35.002182c55.109818 42.449455 97.559273 81.92 128.837818 119.156364zM1406.293333 853.209212c41.704727-70.004364 72.238545-104.261818 90.112-104.261818 9.681455 0 20.107636 5.957818 30.533819 18.618182 23.831273 26.810182 50.641455 45.428364 81.92 54.365091 31.278545 8.192 71.493818 12.660364 122.135272 13.405091 49.896727 0.744727 96.069818 1.489455 138.519273 1.489454h157.882182l13.405091-54.365091c-18.618182 1.489455-44.683636 2.234182-78.196364 2.978909-34.257455 0-67.770182 0.744727-100.538182 0.744728-61.067636 0-111.709091-0.744727-152.669091-1.489455-46.173091-1.489455-81.92-6.702545-105.751272-16.384-21.597091-10.426182-41.704727-26.065455-61.067637-46.917818a125.98303 125.98303 0 0 0-18.618182-17.128727v-280.017455H1365.333333v52.130909h107.240728V701.284848c-31.278545 13.405091-66.280727 52.130909-106.496 116.177455l40.215272 35.746909z m905.588364-370.874182v-126.603636c23.086545 20.107636 50.641455 46.917818 82.664727 79.685818l26.810182-40.96a1522.967273 1522.967273 0 0 0-109.474909-83.409454v-20.107637h107.985455V241.788121h-107.985455V168.060121h-50.641455v73.728H2128.678788v49.152h116.922182c-34.257455 55.854545-79.685818 104.261818-137.029818 145.966546l29.044363 43.194181c47.662545-40.215273 88.622545-90.112 123.624727-150.434909v152.669091h50.641455z m309.806545 0V302.855758c26.810182 62.557091 71.493818 120.645818 132.561455 172.776727l34.257455-42.449455c-63.301818-41.704727-108.730182-89.367273-137.029819-142.242909h105.751273V241.788121h-135.540364V168.060121h-50.641454v73.728H2452.635152v49.152h89.367272a466.695758 466.695758 0 0 1-121.390545 143.732364l29.044363 42.449454c47.662545-44.683636 88.622545-102.772364 121.390546-173.521454v178.734545h50.641454zM2145.807515 850.230303c288.954182-25.320727 463.965091-114.688 525.032727-268.101818v-42.449455h-285.975272a414.440727 414.440727 0 0 0 47.662545-55.109818l-41.704727-25.320727c-48.407273 64.791273-124.369455 116.922182-228.631273 155.648l24.576 43.194182c50.641455-19.362909 96.069818-42.449455 136.285091-69.259637H2612.751515c-30.533818 55.109818-81.175273 99.793455-151.924363 134.050909-35.746909-32.768-79.685818-65.536-131.816728-99.793454l-35.002182 33.512727c45.428364 29.789091 84.154182 59.578182 116.177455 87.877818-77.451636 29.044364-174.266182 47.662545-290.443636 56.599273l26.065454 49.152z m787.176727-8.192c43.194182 0 64.791273-22.341818 64.791273-67.025455v-213.736727c26.810182-12.660364 53.620364-26.065455 80.430546-40.96v-52.130909c-26.065455 14.894545-52.875636 28.299636-80.430546 41.704727v-154.158545h78.941091V304.345212h-78.941091V168.060121h-52.130909v136.285091h-90.112v51.386182h90.112v175.755636a996.38303 996.38303 0 0 1-104.261818 32.768L2854.787879 617.130667a1634.490182 1634.490182 0 0 0 90.856727-33.512728v177.989819c0 22.341818-10.426182 33.512727-30.533818 33.512727-17.873455 0-36.491636-1.489455-55.854546-3.723637l11.17091 50.641455h62.55709z m173.521455 10.426182c83.409455-29.789091 154.158545-67.770182 212.247273-113.943273 50.641455 41.704727 113.943273 79.685818 188.416 112.453818l28.299636-44.683636c-70.749091-29.044364-131.072-62.557091-180.224-100.538182 60.322909-58.088727 103.517091-128.093091 129.582546-210.013091V448.077576h-150.43491v-121.390546h179.479273V275.300848h-179.479273V169.549576h-52.130909v105.751272h-178.734545v51.386182h178.734545v121.390546h-164.584727v50.641454h39.470546c20.852364 76.706909 61.812364 145.221818 124.369454 206.289455-54.365091 42.449455-121.390545 76.706909-200.331636 102.772363l25.320727 44.683637z m210.757818-178.734546c-53.620364-51.386182-90.856727-109.474909-110.219636-175.010909h224.162909a462.910061 462.910061 0 0 1-113.943273 175.010909z m641.954909 175.010909V395.201939h2.978909c50.641455 138.519273 141.498182 264.378182 272.570182 376.087273l35.746909-45.428364c-122.88-96.814545-208.523636-207.034182-257.675636-330.658909h236.078545V343.815758h-289.698909V165.825939h-53.620363v177.989819h-288.954182v51.386181h235.333818c-52.875636 135.540364-140.008727 246.504727-260.654545 332.893091l29.044363 47.662546c132.561455-98.304 227.141818-225.652364 282.251637-380.555637h2.978909v453.538909h53.620363z m180.224-530.245818l42.449455-30.533818c-23.831273-34.257455-58.088727-74.472727-102.772364-120.645818l-41.704727 26.065454c43.194182 45.428364 76.706909 87.133091 102.027636 125.114182z m364.916364 530.245818V533.721212c29.789091 20.852364 59.578182 46.917818 90.112 78.196364l29.789091-46.173091a684.342303 684.342303 0 0 0-119.901091-87.133091c41.704727-53.620364 72.983273-107.240727 92.346182-160.861091V272.321939h-93.835637l15.639273-5.957818c-9.681455-31.278545-23.086545-64.791273-39.470545-102.027636l-51.386182 14.149818c15.639273 29.789091 29.044364 61.067636 40.96 93.835636h-114.688v51.386182h188.416c-34.257455 81.175273-103.517091 164.584727-206.289455 249.483637l16.384 56.599272a1511.641212 1511.641212 0 0 0 99.048728-90.856727v309.806545h52.875636z m511.627636-23.831272V772.033939H4828.315152V445.843394h169.797818v-52.875636H4828.315152V171.03903h-55.109819v221.928728h-166.074181v52.875636h166.074181V772.033939h-192.139636v52.875637h434.920727z m734.301091-5.957818v-51.386182h-561.524363V249.235394h539.927272V197.849212H5137.37697v621.102546h612.910545z m-484.817454-105.006546c85.643636-37.236364 160.861091-90.856727 226.397091-160.861091a1762.707394 1762.707394 0 0 1 152.66909 158.626909l41.704728-41.704727a2653.680485 2653.680485 0 0 0-158.626909-158.626909c44.683636-56.599273 83.409455-122.88 116.922181-198.842182l-48.407272-26.065454c-31.278545 70.749091-67.770182 133.306182-110.219637 187.671272-58.833455-52.130909-122.88-104.261818-191.394909-156.392727l-38.725818 37.236364a3366.043152 3366.043152 0 0 1 195.118546 160.116363 610.800485 610.800485 0 0 1-216.715637 150.434909l31.278546 48.407273z" fill="#FFFFFF"></path><path d="M15.515152 20.883394L639.565576 209.454545v546.443637L15.515152 944.469333V20.883394z m899.878787 0.03103v923.523879l-310.365091-94.083879 130.792728-39.749818V154.779152l-130.792728-39.811879L915.393939 20.914424zM195.801212 253.952v457.479758l263.478303-79.623758V333.575758L195.801212 253.98303z" fill="#4771F8"></path></symbol><symbol id="icon-telecom" viewBox="0 0 1024 1024"><path d="M400.256 641.792L274.944 960h448l-125.632-320z"></path><path d="M665.344 699.072a275.52 275.52 0 0 0 114.944-223.296c0-152.576-126.272-277.248-280.832-277.248-156.416 0-282.688 124.672-282.688 277.248 0 93.056 47.104 174.912 118.72 227.008l24.512-68.8a207.552 207.552 0 0 1-73.472-158.208c0-115.328 94.208-208.384 211.072-208.384s211.072 93.056 211.072 208.384c0 61.44-26.368 115.392-69.76 154.432l26.432 68.864z"></path><path d="M390.144 475.776c0 38.592 20.864 74.24 54.656 93.44 33.856 19.328 75.52 19.328 109.312 0 33.856-19.2 54.656-54.848 54.656-93.44 0-38.528-20.8-74.176-54.656-93.44a110.528 110.528 0 0 0-109.312 0 107.712 107.712 0 0 0-54.656 93.44"></path><path d="M290.304 831.168l24.448-66.944C216.768 702.72 152.704 596.736 152.704 475.776c0-187.904 154.496-342.4 346.752-342.4 190.336 0 346.752 152.64 346.752 342.4 0 119.104-62.144 225.152-158.272 286.592l22.592 66.944c122.496-72.512 203.52-204.672 203.52-353.536 0-227.008-186.56-411.2-414.592-411.2C269.504 64.576 82.944 248.768 82.944 475.776c0 150.72 82.944 282.88 207.36 355.392"></path></symbol><symbol id="icon-control-message" viewBox="0 0 1024 1024"><path d="M173.54666667 207.57333333v438.29333334h82.56v124.37333333l174.61333333-124.37333333H743.46666667V207.57333333H173.54666667z m146.66666666 253.44c-21.54666667 0-39.04-17.49333333-39.04-39.04S298.66666667 382.93333333 320.21333333 382.93333333s39.04 17.49333333 39.04 39.04-17.6 39.04-39.04 39.04z m139.30666667 0c-21.54666667 0-39.04-17.49333333-39.04-39.04s17.49333333-39.04 39.04-39.04c21.54666667 0 39.04 17.49333333 39.04 39.04s-17.49333333 39.04-39.04 39.04z m139.30666667 3.52c-21.54666667 0-39.04-17.49333333-39.04-39.04 0-21.54666667 17.49333333-39.04 39.04-39.04s39.04 17.49333333 39.04 39.04c0 21.65333333-17.49333333 39.04-39.04 39.04z"></path><path d="M767.46666667 455.14666667v214.50666666H459.62666667v90.98666667h218.02666666l121.70666667 86.72v-86.72h57.6V455.14666667h-89.49333333z"></path></symbol><symbol id="icon-control-cases" viewBox="0 0 1024 1024"><path d="M831.99999969 179.99999968v192H192.00000031V179.99999968h639.99999938zM320 244a31.99999969 31.99999969 0 1 0 0 64.00000031 31.99999969 31.99999969 0 0 0 0-64.00000031zM831.99999969 404.00000031v192H192.00000031v-192h639.99999938zM320 467.99999968a31.99999969 31.99999969 0 1 0 0 64.00000032 31.99999969 31.99999969 0 0 0 0-64.00000032zM831.99999969 628v192H192.00000031v-192h639.99999938zM320 692.00000031a31.99999969 31.99999969 0 1 0 0 63.99999937 31.99999969 31.99999969 0 0 0 0-63.99999937z"></path></symbol><symbol id="icon-control-consumer" viewBox="0 0 1024 1024"><path d="M206.53173828 352.90478516c0-84.02783203 69.50390625-152.14130859 155.25-152.1413086 85.78652344 0 155.29130859 68.11347656 155.29130859 152.1413086s-69.54609375 152.14042969-155.29130859 152.14042968-155.25-68.11347656-155.25-152.14042968z m213.42304688 419.56347656v-10.51347656c0-77.56347656 40.41826172-145.71826172 101.37304687-185.8913086a202.99130859 202.99130859 0 0 0-88.32304687-20.29042968H303.56738281c-110.78173828 0-200.57695312 87.95390625-200.57695312 196.48564453v12.68261718c0 44.38564453 89.79521484 44.38564453 200.57695312 44.38564453h123.75a89.50869141 89.50869141 0 0 1-7.36347656-36.8586914z m275.64521484-468.32695313c-71.14130859 0-128.86347656 56.53564453-128.86347656 126.28564454s57.72216797 126.28652344 128.86347656 126.28652343c71.18261719 0 128.86347656-56.53652344 128.86347656-126.28652343s-57.64042969-126.28564453-128.86347656-126.28564454z m0 0c-71.14130859 0-128.86347656 56.53564453-128.86347656 126.28564454s57.72216797 126.28652344 128.86347656 126.28652343c71.18261719 0 128.86347656-56.53652344 128.86347656-126.28652343s-57.64042969-126.28564453-128.86347656-126.28564454z m-48.27304687 294.70869141c-91.96347656 0-166.5 73.02304688-166.50000001 163.10478516v10.51347656c0 36.81738281 74.53652344 36.81738281 166.50000001 36.81738281h107.42783203c91.92216797 0 166.41826172-1.34912109 166.41826171-36.81738281v-10.51347656c0-90.08173828-74.49609375-163.10478516-166.41826171-163.10478516H647.32695312z m0 0"></path></symbol><symbol id="icon-control-dispose" viewBox="0 0 1024 1024"><path d="M443.733333 170.666667v648.533333H170.666667V170.666667z"></path><path d="M853.333333 170.666667v170.666666h-170.666666V273.066667h-136.533334v204.8h136.533334v-68.266667h170.666666v170.666667h-170.666666v-68.266667h-136.533334v204.8h136.533334v-68.266667h170.666666v170.666667h-170.666666v-68.266667h-170.666667v-238.933333h-68.266667v-34.133333h68.266667V238.933333h170.666667V170.666667h170.666666z"></path></symbol><symbol id="icon-control-material" viewBox="0 0 1024 1024"><path d="M831.99999969 159.99999969v672H192.00000031V159.99999969h639.99999938z m-63.99999938 32.00000062h-192v255.99999938l96.15999938-63.99999938L768.00000031 447.99999969V192.00000031z"></path></symbol><symbol id="icon-control-com" viewBox="0 0 1024 1024"><path d="M829.576533 356.693333c80.0768 0.1024 130.389333 14.916267 139.332267 48.298667 9.4208 35.2256-35.669333 78.882133-115.9168 122.333867C844.970667 708.744533 695.364267 853.333333 512 853.333333a341.026133 341.026133 0 0 1-285.252267-153.8048c85.742933-4.437333 194.7648-23.1424 311.739734-54.4768l12.970666-3.515733c120.695467-33.143467 226.474667-73.591467 301.533867-114.210133a336.145067 336.145067 0 0 0-0.2048-34.542934c55.9104-31.4368 86.9376-59.972267 81.92-78.6432-3.9936-14.9504-38.877867-25.838933-99.191467-26.862933h-5.700266a339.0464 339.0464 0 0 0-2.491734-6.212267l2.2528-24.3712zM512 170.666667c142.1312 0 263.9872 86.869333 315.323733 210.397866l-0.6144 6.144 3.106134 0.068267c12.970667 32.9728 20.923733 68.437333 22.971733 105.506133-73.1136 41.233067-188.928 87.483733-322.082133 123.153067l-12.322134 3.2768c-118.647467 30.958933-228.795733 47.650133-309.0432 50.688 5.290667 10.171733 11.127467 20.0704 17.408 29.627733-101.956267 5.3248-170.9056-9.5232-181.009066-47.172266-8.840533-32.938667 26.248533-70.382933 93.7984-109.909334l8.260266-4.744533 17.408 25.1904c-60.279467 34.065067-89.634133 64.068267-85.265066 80.2816 5.461333 20.48 54.408533 29.559467 129.365333 26.7264A339.490133 339.490133 0 0 1 170.666667 512C170.666667 323.4816 323.4816 170.666667 512 170.666667z"></path></symbol><symbol id="icon-control-sta" viewBox="0 0 1024 1024"><path d="M853.333333 477.866667c0 188.5184-152.814933 341.333333-341.333333 341.333333S170.666667 666.385067 170.666667 477.866667 323.4816 136.533333 512 136.533333v341.333334z"></path><path d="M546.133333 102.4c188.5184 0 341.333333 152.814933 341.333334 341.333333H546.133333z"></path></symbol><symbol id="icon-control-user" viewBox="0 0 1024 1024"><path d="M375.466667 204.8m119.466666 0l0 0q119.466667 0 119.466667 119.466667l0 102.4q0 119.466667-119.466667 119.466666l0 0q-119.466667 0-119.466666-119.466666l0-102.4q0-119.466667 119.466666-119.466667Z"></path><path d="M384.750933 648.533333h254.498134c87.722667 0 166.229333 54.408533 197.0176 136.533334l33.8944 90.4192A34.133333 34.133333 0 0 1 838.212267 921.6H185.787733a34.133333 34.133333 0 0 1-31.9488-46.114133L187.733333 785.066667a210.432 210.432 0 0 1 197.0176-136.533334z"></path></symbol><symbol id="icon-control-config" viewBox="0 0 1024 1024"><path d="M853.333333 204.8v443.733333h-273.066666v136.533334h-136.533334v-136.533334H170.666667V204.8h682.666666z"></path><path d="M648.533333 750.933333v34.133334h-273.066666v-34.133334h273.066666z m204.8-204.8v102.4H170.666667v-102.4h682.666666z"></path></symbol><symbol id="icon-control-home" viewBox="0 0 1024 1024"><path d="M513.365333 136.533333L853.333333 307.2v580.266667h-238.933333v-238.933334h-204.8v238.933334H170.666667V307.2l342.698666-170.666667z"></path></symbol><symbol id="icon-logo-blue" viewBox="0 0 1024 1024"><path d="M17.066667 0l686.455466 207.428267v601.088L17.066667 1015.944533V0z m989.866666 0.034133v1015.876267l-341.4016-103.492267 143.872-43.7248V147.285333l-143.872-43.793066L1006.933333 0.034133zM215.381333 256.375467v503.227733l289.826134-87.586133v-328.055467L215.381333 256.4096z" fill="#4771F8"></path></symbol><symbol id="icon-com" viewBox="0 0 1024 1024"><path d="M228.8 881.6c-8 0-14.4-3.2-20.8-8C8 707.2-17.6 408 152 209.6S617.6-14.4 816 153.6s224 465.6 56 665.6c-17.6 20.8-35.2 38.4-56 56-12.8 11.2-32 9.6-43.2-3.2-11.2-12.8-9.6-32 3.2-41.6 172.8-147.2 195.2-406.4 48-579.2s-406.4-195.2-579.2-48-193.6 404.8-48 577.6c14.4 17.6 30.4 33.6 48 48 12.8 11.2 14.4 30.4 3.2 43.2-6.4 6.4-14.4 11.2-22.4 11.2 0-1.6 3.2-1.6 3.2-1.6z" fill="#3D6ADE"></path><path d="M336 774.4c-6.4 0-14.4-3.2-19.2-8-132.8-112-148.8-310.4-36.8-443.2s310.4-148.8 443.2-36.8 148.8 310.4 36.8 443.2c-11.2 12.8-24 25.6-36.8 36.8-12.8 11.2-32 9.6-41.6-3.2-11.2-12.8-9.6-32 3.2-43.2 107.2-91.2 120-251.2 30.4-358.4S464 241.6 356.8 331.2s-120 251.2-30.4 358.4c9.6 11.2 19.2 20.8 30.4 30.4 12.8 11.2 14.4 30.4 3.2 43.2-6.4 6.4-14.4 11.2-24 11.2z" fill="#3D6ADE"></path><path d="M518.4 680c-84.8 0-153.6-68.8-153.6-153.6s68.8-153.6 153.6-153.6 153.6 68.8 153.6 153.6-68.8 152-153.6 153.6z m0-244.8c-51.2 0-91.2 41.6-91.2 92.8 0 51.2 41.6 91.2 92.8 91.2s91.2-41.6 91.2-92.8v-1.6c-1.6-49.6-41.6-89.6-92.8-89.6z" fill="#FDA023"></path><path d="M518.4 982.4c-17.6 0-30.4-14.4-30.4-30.4v-304c0-17.6 14.4-30.4 30.4-30.4 17.6 0 30.4 14.4 30.4 30.4v304c0 16-12.8 30.4-30.4 30.4z" fill="#FDA023"></path></symbol><symbol id="icon-com1" viewBox="0 0 1024 1024"><path d="M228.8 881.6c-8 0-14.4-3.2-20.8-8C8 707.2-17.6 408 152 209.6S617.6-14.4 816 153.6s224 465.6 56 665.6c-17.6 20.8-35.2 38.4-56 56-12.8 11.2-32 9.6-43.2-3.2-11.2-12.8-9.6-32 3.2-41.6 172.8-147.2 195.2-406.4 48-579.2s-406.4-195.2-579.2-48-193.6 404.8-48 577.6c14.4 17.6 30.4 33.6 48 48 12.8 11.2 14.4 30.4 3.2 43.2-6.4 6.4-14.4 11.2-22.4 11.2 0-1.6 3.2-1.6 3.2-1.6z"></path><path d="M336 774.4c-6.4 0-14.4-3.2-19.2-8-132.8-112-148.8-310.4-36.8-443.2s310.4-148.8 443.2-36.8 148.8 310.4 36.8 443.2c-11.2 12.8-24 25.6-36.8 36.8-12.8 11.2-32 9.6-41.6-3.2-11.2-12.8-9.6-32 3.2-43.2 107.2-91.2 120-251.2 30.4-358.4S464 241.6 356.8 331.2s-120 251.2-30.4 358.4c9.6 11.2 19.2 20.8 30.4 30.4 12.8 11.2 14.4 30.4 3.2 43.2-6.4 6.4-14.4 11.2-24 11.2z"></path><path d="M518.4 680c-84.8 0-153.6-68.8-153.6-153.6s68.8-153.6 153.6-153.6 153.6 68.8 153.6 153.6-68.8 152-153.6 153.6z m0-244.8c-51.2 0-91.2 41.6-91.2 92.8 0 51.2 41.6 91.2 92.8 91.2s91.2-41.6 91.2-92.8v-1.6c-1.6-49.6-41.6-89.6-92.8-89.6z"></path><path d="M518.4 982.4c-17.6 0-30.4-14.4-30.4-30.4v-304c0-17.6 14.4-30.4 30.4-30.4 17.6 0 30.4 14.4 30.4 30.4v304c0 16-12.8 30.4-30.4 30.4z"></path></symbol><symbol id="icon-bestbeifen" viewBox="0 0 1024 1024"><path d="M783.27466667 582.95466666L618.66666667 681.83466666l98.88 164.544 164.608-98.88zM233.83466667 582.95466666l164.544 98.88-98.88 164.544-164.544-98.88z"></path><path d="M522.66666667 42.66666666a352 352 0 1 1 0 704 352 352 0 0 1 0-704z m0 64a288 288 0 1 0 0 576 288 288 0 0 0 0-576z"></path><path d="M234.02666667 572.97066666l55.424 32-92.416 160 83.84-17.28 27.008 81.28 92.416-160 55.424 32-163.648 283.392-53.952-162.56-167.744 34.56zM804.07466667 572.97066666l-55.424 32 92.352 160-83.84-17.28-27.008 81.28-92.352-160-55.424 32 163.648 283.392 53.952-162.56 167.68 34.56z"></path><path d="M522.66666667 42.66666666a352 352 0 1 1 0 704 352 352 0 0 1 0-704z m0 192a160 160 0 1 0 0 320 160 160 0 0 0 0-320z"></path></symbol><symbol id="icon-best" viewBox="0 0 1024 1024"><path d="M522.66666667 42.66666666a352 352 0 1 1 0 704 352 352 0 0 1 0-704z m0 64a288 288 0 1 0 0 576 288 288 0 0 0 0-576z"></path><path d="M522.66666667 234.66666666a160 160 0 1 1 0 320 160 160 0 0 1 0-320z m0 64a96 96 0 1 0 0 192 96 96 0 0 0 0-192zM234.02666667 572.97066666l55.424 32-92.416 160 83.84-17.28 27.008 81.28 92.416-160 55.424 32-163.648 283.392-53.952-162.56-167.744 34.56zM804.07466667 572.97066666l-55.424 32 92.352 160-83.84-17.28-27.008 81.28-92.352-160-55.424 32 163.648 283.392 53.952-162.56 167.68 34.56z"></path></symbol><symbol id="icon-certi" viewBox="0 0 1024 1024"><path d="M896 64v896H128V64h768z m-64 64H192v768h640V128zM512 576v64H320V576h192z m192-128v64H320V448h384z m0-128v64H320V320h384z"></path></symbol><symbol id="icon-cloud-select" viewBox="0 0 1024 1024"><path d="M1024 0v1024H0z" fill="#3D6ADE"></path><path d="M880.64 572.416l-188.416 197.12-112.64-118.272c-7.168-7.168-18.432-6.656-25.088 0.512-6.656 7.168-6.656 18.432 0 25.6l124.416 130.56s0.512 0 0.512 0.512c0 0 0 0.512 0.512 0.512 6.656 7.168 17.92 7.168 25.088 0l200.704-210.432c7.168-7.168 7.168-18.944 0-26.112-7.168-7.168-18.432-7.168-25.088 0" fill="#FFFFFF"></path></symbol><symbol id="icon-energy1" viewBox="0 0 1024 1024"><path d="M512 64s384 363.904 384 576a384 384 0 1 1-768 0c0-212.096 384-576 384-576z m41.344 361.344l-192 192L384 672h178.688l-137.344 137.344 45.312 45.312 192-192L640 608H461.184l137.472-137.344-45.312-45.312z"></path></symbol><symbol id="icon-damengwendang" viewBox="0 0 4406 1024"><path d="M15.515152 20.883394L639.565576 209.454545v546.443637L15.515152 944.469333V20.883394z m899.878787 0.03103v923.523879l-310.365091-94.083879 130.792728-39.749818V154.779152l-130.792728-39.811879L915.393939 20.914424zM195.801212 253.952v457.479758l263.478303-79.623758V333.575758L195.801212 253.98303z" fill="#4771F8"></path><path d="M1959.377455 721.392485l38.725818-37.981091c-86.388364-104.261818-163.095273-185.437091-230.120728-242.036364 4.468364-17.873455 8.192-36.491636 11.915637-55.854545h198.097454v-52.130909h-189.905454c4.468364-40.96 7.447273-84.898909 7.447273-131.072V168.060121h-53.620364V213.488485a1218.870303 1218.870303 0 0 1-7.447273 119.901091h-168.308363v52.130909h160.116363c-25.320727 135.540364-84.898909 232.354909-177.245091 291.188363l32.768 43.93891c78.941091-52.130909 135.540364-128.837818 171.287273-229.376 69.259636 65.536 137.774545 142.242909 206.289455 230.120727zM1484.986182 333.389576l38.725818-39.470546c-35.746909-37.981091-78.941091-75.962182-130.327273-114.688l-37.236363 35.002182c55.109818 42.449455 97.559273 81.92 128.837818 119.156364z m-101.282909 519.819636c41.704727-70.004364 72.238545-104.261818 90.112-104.261818 9.681455 0 20.107636 5.957818 30.533818 18.618182 23.831273 26.810182 50.641455 45.428364 81.92 54.365091 31.278545 8.192 71.493818 12.660364 122.135273 13.405091 49.896727 0.744727 96.069818 1.489455 138.519272 1.489454h157.882182l13.405091-54.365091c-18.618182 1.489455-44.683636 2.234182-78.196364 2.978909-34.257455 0-67.770182 0.744727-100.538181 0.744728-61.067636 0-111.709091-0.744727-152.669091-1.489455-46.173091-1.489455-81.92-6.702545-105.751273-16.384-21.597091-10.426182-41.704727-26.065455-61.067636-46.917818a125.98303 125.98303 0 0 0-18.618182-17.128727v-280.017455h-158.626909v52.130909h107.240727V701.284848c-31.278545 13.405091-66.280727 52.130909-106.496 116.177455l40.215273 35.746909z m905.588363-370.874182v-126.603636c23.086545 20.107636 50.641455 46.917818 82.664728 79.685818l26.810181-40.96a1522.967273 1522.967273 0 0 0-109.474909-83.409454v-20.107637h107.985455V241.788121h-107.985455V168.060121h-50.641454v73.728h-132.561455v49.152h116.922182c-34.257455 55.854545-79.685818 104.261818-137.029818 145.966546l29.044364 43.194181c47.662545-40.215273 88.622545-90.112 123.624727-150.434909v152.669091h50.641454z m309.806546 0V302.855758c26.810182 62.557091 71.493818 120.645818 132.561454 172.776727l34.257455-42.449455c-63.301818-41.704727-108.730182-89.367273-137.029818-142.242909h105.751272V241.788121H2599.098182V168.060121h-50.641455v73.728h-118.411636v49.152h89.367273a466.695758 466.695758 0 0 1-121.390546 143.732364l29.044364 42.449454c47.662545-44.683636 88.622545-102.772364 121.390545-173.521454v178.734545h50.641455zM2123.217455 850.230303c288.954182-25.320727 463.965091-114.688 525.032727-268.101818v-42.449455h-285.975273a414.440727 414.440727 0 0 0 47.662546-55.109818L2368.232727 459.248485c-48.407273 64.791273-124.369455 116.922182-228.631272 155.648l24.576 43.194182c50.641455-19.362909 96.069818-42.449455 136.28509-69.259637h289.69891c-30.533818 55.109818-81.175273 99.793455-151.924364 134.050909-35.746909-32.768-79.685818-65.536-131.816727-99.793454L2271.418182 656.601212c45.428364 29.789091 84.154182 59.578182 116.177454 87.877818-77.451636 29.044364-174.266182 47.662545-290.443636 56.599273l26.065455 49.152z m1353.914181 2.978909l29.044364-44.683636c-119.156364-43.938909-218.205091-99.048727-297.146182-166.074182 72.983273-78.941091 128.093091-177.989818 164.584727-295.656727h116.177455V293.174303h-284.485818c-23.831273-51.386182-49.152-95.325091-77.451637-131.072l-53.620363 19.362909a572.291879 572.291879 0 0 1 74.472727 111.709091h-308.317091v53.620364h114.688c33.512727 114.688 93.090909 214.481455 179.479273 299.380363-80.430545 72.983273-183.202909 125.858909-308.317091 159.371637l28.299636 46.917818c126.603636-36.491636 232.354909-93.835636 317.253819-172.032 80.430545 69.259636 181.713455 126.603636 305.338181 172.776727z m-305.338181-244.270545c-77.451636-74.472727-131.816727-161.605818-163.84-262.144h309.806545c-31.278545 102.772364-79.685818 189.905455-145.966545 262.144zM4218.88 850.230303V425.735758h-153.413818V167.315394h-54.365091v258.420364h-166.074182v52.130909h320.232727v117.666909h-301.614545v50.641454h301.614545v120.645818H3831.621818v52.13091h333.637818V850.230303h53.620364z m-483.328-2.978909v-379.810909c20.852364 27.554909 44.683636 64.046545 72.983273 109.474909l30.533818-44.683636c-35.002182-46.173091-69.259636-87.877818-103.517091-124.369455v-43.194182h88.622545v-51.386182h-88.622545v-145.221818h-54.365091v145.221818h-101.282909v51.386182h100.538182c-23.086545 91.601455-61.812364 173.521455-116.922182 245.76l23.086545 57.344c38.725818-58.088727 70.004364-122.135273 94.580364-193.629091v373.108364h54.365091z m423.749818-459.496727a895.100121 895.100121 0 0 0 80.430546-160.116364l-47.662546-22.341818c-19.362909 52.130909-46.173091 105.006545-78.941091 158.626909l46.173091 23.831273z m-247.249454-1.489455l46.173091-23.086545c-23.831273-55.109818-49.152-106.496-75.962182-152.669091l-46.917818 23.086545a1165.28097 1165.28097 0 0 1 76.706909 152.669091z" fill="#FFFFFF"></path></symbol><symbol id="icon-choosen" viewBox="0 0 1024 1024"><path d="M1024 1024V0H0z" fill="#4771F8"></path><path d="M909.5168 121.1392l24.1664 24.132267-274.568533 274.5344-159.197867-159.197867 24.1664-24.132267 135.031467 135.0656z" fill="#FFFFFF"></path></symbol><symbol id="icon-dm" viewBox="0 0 1024 1024"><path d="M249.856 413.149867c-89.7024 83.626667-137.728 195.584-100.795733 276.821333 42.0864 92.706133 195.720533 109.9776 315.5968 67.925333 25.3952-109.533867 38.0928-170.3936-63.488-189.6448-148.48-28.2624-150.084267-86.357333-151.278934-155.101866z m484.352 191.249066c-11.502933-72.669867-16.6912-126.0544-145.681067-144.520533-88.951467-12.970667-97.655467-119.773867-65.911466-205.380267 107.963733-35.7376 265.966933-32.9728 316.0064 63.624534 44.032 86.016-16.6912 201.454933-104.413867 286.276266z" fill="#1C2681"></path><path d="M274.944 387.822933c18.773333-16.2816 39.048533-32.5632 60.484267-46.557866-16.0768 53.930667-19.1488 169.506133 102.946133 189.303466 91.818667 14.7456 114.7904 44.202667 104.106667 191.214934-18.773333 8.942933-37.546667 16.6912-56.661334 23.6544 12.253867-60.893867 25.634133-170.666667-61.986133-188.484267-106.8032-21.742933-161.8944-36.078933-148.8896-169.130667z m74.615467-56.251733c-15.701333 140.424533 20.6848 173.7728 140.458666 192.4096 80.008533 12.3904 79.598933 130.730667 69.632 189.269333a727.381333 727.381333 0 0 0 52.462934-30.242133c13.380267-146.6368-38.638933-171.451733-106.3936-181.930667-114.039467-17.8176-120.9344-103.560533-99.874134-202.069333-19.899733 10.8544-37.888 20.923733-56.285866 32.5632z m73.489066-40.721067c-22.186667 128-7.2704 184.661333 125.917867 204.014934 61.986133 9.3184 95.300267 86.528 79.9744 177.288533a961.536 961.536 0 0 0 52.4288-38.8096c9.216-94.6176-30.993067-143.906133-118.613333-158.6176-93.764267-15.530667-104.482133-133.051733-83.831467-207.1552-10.717867 3.106133-37.102933 14.336-55.876267 23.278933z" fill="#DD1B1A"></path></symbol><symbol id="icon-closeeyes" viewBox="0 0 1024 1024"><path d="M1009.472 328.256c-16.448-12.864-38.4-9.216-51.2 7.232-1.792 1.792-204.8 241.28-446.08 241.28-234.112 0-446.144-241.28-448-243.072a37.056 37.056 0 0 0-51.2-3.648 37.056 37.056 0 0 0-3.584 51.2c3.648 5.44 47.616 54.784 117.12 109.632L33.024 587.84c-14.592 14.656-12.8 38.4 1.856 51.2 3.584 7.232 12.8 11.008 21.888 11.008a35.968 35.968 0 0 0 25.664-11.008l100.608-104.192c47.552 32.896 104.192 64 166.4 85.888l-38.336 129.92a36.672 36.672 0 0 0 25.664 45.76h11.072a35.2 35.2 0 0 0 34.752-27.52l38.336-129.92a506.24 506.24 0 0 0 91.328 9.28c31.104 0 62.272-3.648 91.392-9.216l38.336 128.064c3.584 16.448 20.096 27.52 34.752 27.52 3.584 0 7.232 0 9.216-1.856a36.736 36.736 0 0 0 25.664-45.76l-38.912-128a710.016 710.016 0 0 0 166.464-86.016l98.752 102.4a36.416 36.416 0 0 0 25.728 11.072 35.968 35.968 0 0 0 25.664-11.072 36.992 36.992 0 0 0 1.792-51.2l-93.12-96.96c74.688-54.784 118.656-107.776 118.656-107.776a39.424 39.424 0 0 0-7.232-51.2z"></path></symbol><symbol id="icon-function" viewBox="0 0 1024 1024"><path d="M480 96v384h-384v-384h384z m-64 64h-256v256h256v-256zM480 544v384h-384v-384h384z m-64 64h-256v256h256v-256zM928 96v384h-384v-384h384z m-64 64h-256v256h256v-256zM928 544v384h-384v-384h384z m-64 64h-256v256h256v-256z"></path></symbol><symbol id="icon-performance" viewBox="0 0 1024 1024"><path d="M1024 768v64H0v-64z"></path><path d="M960 192v640H64V192h896z m-64 64H128v512h768V256z"></path><path d="M700.544 402.88l48.576 41.6-150.4 175.488-164.608-128-110.656 129.152-48.576-41.6 150.4-175.488 164.544 127.936z"></path></symbol><symbol id="icon-windows" viewBox="0 0 1024 1024"><path d="M192.00000031 291.90399969L447.90399969 255.99999969 447.99999969 510.49599969 192.25599969 512 192.00000031 291.90399969z m255.80799938 253.79200031L447.99999969 800l-255.99999938-36.16000031V543.99999969l255.80799938 1.69600031zM480.00000031 244.736L864.00000031 192.00000031v317.11999969L480.00000031 512V244.736z m384 299.83999969L863.90400031 864.00000031l-383.36000062-51.61600031L480.00000031 543.99999969l384 0.576z" fill="#0078D7"></path></symbol><symbol id="icon-linux" viewBox="0 0 1024 1024"><path d="M522.01972622 274.05092067a37.04968533 37.04968533 0 0 0-14.36937443 17.74811933c-2.87387534 9.39834823-2.40784157 19.41807445 1.16508444 28.58340466 2.95154688 9.63136512 8.85464178 18.05880889 16.85488754 24.117248a30.21452288 30.21452288 0 0 0 13.78683335 5.32055267 25.12698823 25.12698823 0 0 0 14.48588288-2.4855131 28.50573312 28.50573312 0 0 0 12.03920555-13.12661845c2.44667733-5.6312411 3.8059429-11.61200867 3.96128711-17.67044779 0.54370645-7.76723001-0.46603378-15.49562311-2.87387421-22.83565511a37.94291712 37.94291712 0 0 0-14.75773667-19.65109021 29.59314489 29.59314489 0 0 0-11.72851712-4.38848512 24.54444601 24.54444601 0 0 0-12.34989511 1.35926557 33.70977621 33.70977621 0 0 0-6.291456 3.41758066" fill="#FFFFFF"></path><path d="M738.18172643 583.6915291a320.08753266 320.08753266 0 0 0-18.05880888-62.68154311 179.53951289 179.53951289 0 0 0-22.36962134-42.3314011c-9.39834823-12.50523933-21.32104533-23.02983623-30.48637554-35.72925668-4.8545189-6.60214557-8.93231445-13.94217757-14.01985024-20.38897778l-6.0196022-12.73825621c-6.05843911-13.28196267-11.57317177-26.83577799-18.79669646-39.41868999-1.16508445-1.98064355-2.33016889-3.96128711-3.49525334-5.82542222-0.89323179-12.15571399-2.17482467-24.31142912-2.8738742-36.42830734a344.47663445 344.47663445 0 0 0-6.13611178-72.7401051 120.93576533 120.93576533 0 0 0-14.40821135-32.46702024 111.22672867 111.22672867 0 0 0-28.23387932-30.44753976 108.6635429 108.6635429 0 0 0-62.5261989-20.00061668 98.10011022 98.10011022 0 0 0-47.38009998 10.91295801c-15.37911467 8.42744377-27.84551822 21.3598811-35.651584 37.0885211-7.26235933 15.84514845-11.1459749 33.01072555-11.37899179 50.44815645-0.62137799 17.12674133 1.00974023 34.13697422 1.66995399 51.26371555 0.69905067 17.74811933 0.31068957 35.57391133 1.74762667 53.32203179 0.46603378 5.70891378 1.16508445 11.37899179 1.16508444 17.1655771 0 2.87387534-0.19418112 5.74774955-0.27185266 8.54395221l-0.19418112 0.62137913c-7.76723001 13.12661845-16.31118222 25.78720199-25.63185777 37.86524444-6.56330866 8.27209955-13.08778155 16.46652643-19.65109021 24.54444488-8.58278912 9.67020089-15.88398421 20.35014201-21.6317349 31.84564224-3.88361443 10.05856199-6.99050667 20.35014201-9.39834822 30.83590087l-0.2330169 0.81555911a239.50252601 239.50252601 0 0 1-15.14609777 38.25360668c-3.30107221 6.71865401-6.71865401 13.47614379-10.25274311 20.07828822l-4.11663133 7.65072156c-2.56318578 4.66033778-4.8545189 9.437184-6.83516245 14.29170176-1.12624867 2.95154688-2.01947933 5.98076643-2.56318578 9.08765867-0.97090333 6.60214557-0.54370645 13.28196267 1.20392135 19.65109134 0.3883611 1.55344555 0.93206755 3.18456377 1.43693711 4.77684622 1.66995399 4.69917355 3.65059755 9.32067555 6.01960334 13.70916068 1.048576 2.05831623 2.17482467 4.03895979 3.26223644 6.09727488l0.97090332 1.4369371c1.048576 1.90297088 2.21366045 3.76710599 3.33990912 5.59240533l0.15534422 0.23301689c1.28159289 2.13598777 2.71852999 4.194304 4.07779556 6.21378447l0.23301688 0.31068842c1.4369371 1.98064355 2.87387534 4.03895979 4.38848512 5.98076758 5.6312411 21.94242333 15.92282112 42.3314011 30.13685021 59.92417621-2.21366045 3.88361443-4.194304 7.68955733-6.36912754 11.45666332-7.76723001 11.26248334-14.13635755 23.30168889-19.02971335 35.96227357a43.30230557 43.30230557 0 0 0-1.47577287 20.19479666 28.46689621 28.46689621 0 0 0 9.86438087 17.43743089c3.57292601 2.71852999 7.68955733 4.62150201 12.00036978 5.51473266 4.31081245 0.93206755 8.7769691 1.39810133 13.28196266 1.16508445 16.81605177-1.28159289 33.51559623-4.66033778 49.59376157-9.78670934 9.70903666-2.60202155 19.41807445-4.8545189 29.28245532-6.83516132 10.25274311-2.33016889 20.62199467-3.8059429 31.0689189-4.27197667 2.60202155 0.11650845 5.20404423-0.03883577 7.68955733-0.19418112 7.14585088 0.77672334 14.25286599 1.048576 21.47638955 0.77672334l2.64085845-0.19418112c1.82529934 0.23301689 3.72827022 0.31068957 5.6312411 0.46603378a388.59449799 388.59449799 0 0 1 70.13808356 10.33041579 247.77462557 247.77462557 0 0 0 51.06953558 9.78670933c4.54382933 0.23301689 9.08765867-0.15534421 13.631488-1.08741177a31.0689189 31.0689189 0 0 0 12.38873088-5.59240533 28.54456889 28.54456889 0 0 0 9.90321777-17.35975823c1.16508445-6.75748978 0.62137799-13.67032377-1.4369371-20.19479779a170.64603534 170.64603534 0 0 0-19.34040178-35.88460089c-2.71852999-4.62150201-5.28171577-9.39834823-8.03908267-14.0198491 11.76735289-13.12661845 22.13660445-27.57366557 30.87473778-42.87510756 5.32055267 0.31068957 10.56343267-0.27185266 15.65096733-1.94180778a65.63308999 65.63308999 0 0 0 32.81654556-24.66095332 36.73899577 36.73899577 0 0 0 5.43705999-11.26248334c5.28171577-8.07791843 8.81580601-17.20441401 10.48576-26.75810646a135.42164821 135.42164821 0 0 0-1.12624754-47.53544533h-0.15534536z" fill="#020204"></path><path d="M446.48341845 368.81112178a26.36974421 26.36974421 0 0 0-4.89335466 10.29157888 57.67168 57.67168 0 0 0-1.43693824 11.37899179c0.23301689 7.65072157-0.3883611 15.3402789-1.86413512 22.8356551a70.75946155 70.75946155 0 0 1-11.84502442 21.47638955c-8.89347755 11.1459749-15.84514845 23.69004999-20.62199467 37.01084957a66.02145223 66.02145223 0 0 0-2.33016889 25.5541851c-9.20416711 13.59265223-17.1655771 27.96202667-23.76772266 42.991616a237.05584867 237.05584867 0 0 0-19.34040178 71.61385756 182.72407666 182.72407666 0 0 0 12.89360042 89.36197689c8.54395221 20.3113051 21.59289799 38.52545934 38.13709824 53.20552335a125.05239666 125.05239666 0 0 0 139.81013334 17.47626666c17.47626667-10.29157888 33.51559623-22.95216355 47.45777266-37.59339178 9.0488229-8.19442688 17.08790557-17.39859399 24.15608376-27.41832022 11.72851712-20.38897778 18.64135111-43.30230557 20.07828936-66.79817557a217.7154469 217.7154469 0 0 0-12.81592889-120.78041999 131.88755911 131.88755911 0 0 0-24.117248-34.56417222 191.53988267 191.53988267 0 0 0-15.3402789-51.57440512c-5.43706112-11.76735289-12.03920555-22.99099933-17.12674133-35.06904178-2.05831623-4.93219043-3.88361443-9.94205355-6.13611179-14.71889977a45.7489829 45.7489829 0 0 0-8.93231331-13.08778155 36.27296199 36.27296199 0 0 0-14.05868602-8.15559111 58.09887801 58.09887801 0 0 0-16.07816533-2.71853113c-10.91295801-0.50486955-21.94242333 0.85439488-32.70003712 0.46603378-8.69929757-0.3883611-17.28208555-1.90297088-26.02021888-1.35926443a40.19541333 40.19541333 0 0 0-12.66058467 2.64085732 25.39884089 25.39884089 0 0 0-10.48576 7.57304889m3.49525333-94.87670955a17.86462777 17.86462777 0 0 0-10.8741211 4.8545189 24.117248 24.117248 0 0 0-6.40796445 10.25274311 62.29318201 62.29318201 0 0 0-1.4369371 24.27259221c0.15534421 7.37886777 1.4369371 14.71889977 3.88361444 21.67057067a28.35038777 28.35038777 0 0 0 5.9030949 9.28183978 18.75785955 18.75785955 0 0 0 19.6510902 5.16520733 22.020096 22.020096 0 0 0 8.69929756-5.32055267 29.39896377 29.39896377 0 0 0 7.45654045-12.97127311c1.28159289-4.8545189 1.90297088-9.94205355 1.74762667-15.02958933 0-6.291456-1.00974023-12.582912-2.91271112-18.64135111a41.47700622 41.47700622 0 0 0-9.55369244-16.23350955 26.95228643 26.95228643 0 0 0-7.26235932-5.47589689 19.02971221 19.02971221 0 0 0-8.89347869-1.82529934m72.07989134 0a37.04968533 37.04968533 0 0 0-14.36937443 17.74811933c-2.87387534 9.39834823-2.40784157 19.41807445 1.16508444 28.58340579 2.95154688 9.63136512 8.85464178 18.05880889 16.85488754 24.15608377a30.21452288 30.21452288 0 0 0 13.78683335 5.28171577 25.12698823 25.12698823 0 0 0 14.48588288-2.48551311 28.50573312 28.50573312 0 0 0 12.03920555-13.12661845c2.44667733-5.6312411 3.8059429-11.61200867 3.96128711-17.67044665 0.54370645-7.76723001-0.46603378-15.49562311-2.87387421-22.83565511a37.94291712 37.94291712 0 0 0-14.75773667-19.65109134 29.59314489 29.59314489 0 0 0-11.72851712-4.38848512 24.54444601 24.54444601 0 0 0-12.34989511 1.35926557 33.70977621 33.70977621 0 0 0-6.291456 3.41758065" fill="#FFFFFF"></path><path d="M536.66095445 293.2359771a14.25286599 14.25286599 0 0 0-6.75748978 2.21366045 18.01997312 18.01997312 0 0 0-5.16520846 5.00986311 25.90371043 25.90371043 0 0 0-4.07779555 13.59265223 28.11737088 28.11737088 0 0 0 1.43693824 10.60226844 19.41807445 19.41807445 0 0 0 5.98076643 8.69929757 16.81605177 16.81605177 0 0 0 20.46665046 0.97090332 18.56367843 18.56367843 0 0 0 5.78658531-6.60214556 25.86487467 25.86487467 0 0 0 0.15534535-23.45703311 21.04919267 21.04919267 0 0 0-11.26248334-10.09739889 16.31118222 16.31118222 0 0 0-6.60214556-1.08741177" fill="#020204"></path><path d="M449.93983488 274.05092067a17.86462777 17.86462777 0 0 0-10.8741211 4.85451776 24.117248 24.117248 0 0 0-6.40796445 10.25274312 62.29318201 62.29318201 0 0 0-1.4369371 24.27259335c0.15534421 7.37886777 1.4369371 14.71889977 3.88361444 21.67057067a27.57366557 27.57366557 0 0 0 5.9030949 9.28183864 18.75785955 18.75785955 0 0 0 19.6510902 5.16520846 22.020096 22.020096 0 0 0 8.69929756-5.32055267 29.39896377 29.39896377 0 0 0 7.45654045-12.9712731c1.28159289-4.8545189 1.90297088-9.94205355 1.74762667-15.02958933 0-6.291456-1.00974023-12.582912-2.91271112-18.64135112a41.47700622 41.47700622 0 0 0-9.55369244-16.23351068 26.95228643 26.95228643 0 0 0-7.26235932-5.47589689 19.02971221 19.02971221 0 0 0-8.89347869-1.82529821" fill="#FFFFFF"></path><path d="M440.15312555 307.79953266a30.87473778 30.87473778 0 0 0 0.85439602 15.34027889 24.93280711 24.93280711 0 0 0 10.75761265 12.8159289 9.47601977 9.47601977 0 0 0 6.60214557 0.8155591 9.39834823 9.39834823 0 0 0 5.08753464-3.41758065 17.35975822 17.35975822 0 0 0 2.79620267-5.5147338 30.7970651 30.7970651 0 0 0-0.31068843-18.13648043 23.41819733 23.41819733 0 0 0-6.87399822-11.22364757 14.2917029 14.2917029 0 0 0-5.63124224-2.95154688 9.70903666 9.70903666 0 0 0-6.36912754 0.50486955 11.06830222 11.06830222 0 0 0-4.93219157 4.93219157 21.08802845 21.08802845 0 0 0-2.05831509 6.75748978" fill="#020204"></path><path d="M430.52176157 371.60732445c0.15534421 0.6602149 0.3883611 1.35926557 0.7767222 1.90297088 0.6602149 1.048576 1.51460978 1.86413511 2.56318578 2.56318577 1.00974023 0.69905067 1.98064355 1.28159289 2.95154802 1.90297202 5.24288 3.57292601 9.86438201 7.96140999 13.59265109 13.12661731 4.54382933 7.10701511 10.25274311 13.47614379 16.69954446 18.95204068 4.93219043 3.41758066 10.67994112 5.43706112 16.69954333 5.98076644 6.99050667 0.54370645 13.98101333-0.31068957 20.77733888-2.40784043 6.21378333-1.82529934 12.1945509-4.38848512 17.825792-7.80606578 9.63136512-7.76723001 19.922944-14.56355555 30.835902-20.27246933 2.60202155-0.89323179 5.16520733-1.55344555 7.61188466-2.71853113a11.88386133 11.88386133 0 0 0 5.9030949-5.32055154 25.8260389 25.8260389 0 0 0 1.4369371-7.57304889c0.3883611-2.71852999 1.28159289-5.39822421 1.74762667-8.15559111a14.40821134 14.40821134 0 0 0-0.58254223-8.15559111 11.18481067 11.18481067 0 0 0-4.77684622-4.77684622 16.62187179 16.62187179 0 0 0-6.60214442-1.66995513c-4.66033778 0.15534421-9.20416711 0.58254222-13.67032491 1.35926557-6.05843911 0.54370645-12.11687822-0.23301689-18.2141531 0-7.49537621 0.23301689-14.99075357 1.90297088-22.60263823 2.21366044-8.62162489 0.42719801-17.20441401-0.93206755-25.86487466-1.32042866a50.68117333 50.68117333 0 0 0-11.22364644 0.54370532 24.58328178 24.58328178 0 0 0-10.36925155 4.03895978 92.58537757 92.58537757 0 0 0-8.15559111 7.26235933 22.52496555 22.52496555 0 0 1-4.4661578 3.10689223 10.71877689 10.71877689 0 0 1-5.28171577 1.20392021 8.69929757 8.69929757 0 0 0-2.83503843 0 4.66033778 4.66033778 0 0 0-1.43693824 0.93206756l-1.12624754 1.35926556a23.49587001 23.49587001 0 0 0-1.94180779 3.57292601" fill="#D99A03"></path><path d="M449.59030955 352.49993955a164.12156245 164.12156245 0 0 0-8.93231332 5.82542223 11.76735289 11.76735289 0 0 0-3.88361557 3.88361443 8.23326379 8.23326379 0 0 0-0.69905067 3.76710713 32.8942171 32.8942171 0 0 1 0 3.88361444c-0.07767267 0.81555911-0.3883611 1.74762667-0.3883611 2.64085845a3.5340891 3.5340891 0 0 0 0.77672334 2.44667734c0.3883611 0.3883611 0.89323179 0.6602149 1.51460978 0.8155591 0.50486955 0.15534421 1.12624867 0.23301689 1.74762666 0.38836111 2.64085845 0.77672334 5.04869888 2.21366045 7.02934244 4.07779555 2.05831623 1.82529934 3.88361443 3.96128711 6.09727488 5.70891378a34.25348267 34.25348267 0 0 0 20.93268423 6.83516246c7.49537621-0.15534421 14.91308089-1.24275712 22.13660445-3.10689224 5.67007801-1.24275712 11.30131911-2.71852999 16.777216-4.66033778 8.46628067-3.18456377 16.31118222-7.76723001 23.02983623-13.78683221 2.95154688-2.87387534 6.09727488-5.43706112 9.437184-7.80606577 3.02921955-1.90297088 6.60214557-3.18456377 9.63136398-5.04870002 0.27185266-0.11650845 0.50486955-0.34952533 0.81555911-0.50486955 0.23301689-0.23301689 0.46603378-0.42719801 0.62137913-0.77672334a2.13598777 2.13598777 0 0 0 0-1.63111823 3.88361443 3.88361443 0 0 0-0.69905067-1.35926442 10.36925155 10.36925155 0 0 0-1.28159288-1.3204298 21.3598811 21.3598811 0 0 0-12.00036978-4.15546709c-4.38848512-0.31068957-8.54395221 0-12.81592889-0.85439602a88.15805667 88.15805667 0 0 1-11.61200868-3.30107221 79.61410333 79.61410333 0 0 0-42.02071267-2.21366044 93.9834789 93.9834789 0 0 0-26.2144 10.2527431" fill="#604405"></path><path d="M448.58057045 342.16952377c-4.38848512 2.95154688-8.34977223 6.60214557-11.76735288 10.67994112a25.36000512 25.36000512 0 0 0-4.62150202 7.84490154 54.44827933 54.44827933 0 0 0-1.90297088 9.63136512c0 0.42719801 0.07767267 0.89323179 0.2330169 1.2815929 0.15534421 0.42719801 0.3883611 0.81555911 0.69905066 1.16508444a3.76710599 3.76710599 0 0 0 1.94180665 0.93206756c0.69905067 0.15534421 1.47577401 0.15534421 2.21366045 0.23301688a21.43755378 21.43755378 0 0 1 9.2041671 3.88361444c2.71852999 1.90297088 5.28171577 4.07779555 8.11675535 5.9030949 6.36912867 3.8059429 13.631488 5.82542222 21.08802844 6.01960334 7.41770467 0.11650845 14.75773667-0.62137799 21.98126023-2.21366044 5.74774955-1.048576 11.45666333-2.64085845 17.01023289-4.77684623 8.23326379-3.57292601 16.00049266-8.19442688 23.02983509-13.82566912a102.72161223 102.72161223 0 0 0 12.42756779-10.67994112 11.18481067 11.18481067 0 0 1 3.57292601-2.05831509 12.62174777 12.62174777 0 0 1 6.33029177-0.07767268 19.41807445 19.41807445 0 0 0 4.66033778 0.54370646 8.03908267 8.03908267 0 0 0 2.36900465-0.38836224 4.42732089 4.42732089 0 0 0 2.87387535-4.27197554 5.82542222 5.82542222 0 0 0-0.81555911-2.91271111 10.36925155 10.36925155 0 0 0-4.77684622-3.88361557 44.15670045 44.15670045 0 0 0-8.19442688-2.40784043 115.61521266 115.61521266 0 0 1-24.81629867-9.0488229c-3.92245134-1.94180779-7.65072157-4.07779555-11.61200868-6.13611179a68.23511267 68.23511267 0 0 0-12.27222243-5.43705998 48.35100445 48.35100445 0 0 0-29.67081757 1.32042866 63.38059378 63.38059378 0 0 0-27.37948444 18.75785956" fill="#F5BD0C"></path><path d="M501.43656733 343.179264c0.62137799 12.11687822 3.65059755 10.01972622 5.43706112 15.30144199 1.74762667 5.28171577 2.7573669 15.30144199 4.46615665 16.35001913 1.78646243 1.048576 4.23313977-3.68943445 4.4661578-13.70916067a60.89508067 60.89508067 0 0 0-4.89335467-26.91345067c-2.71852999-7.92257422-5.74774955-8.46628067-8.4274449-1.048576a34.36999111 34.36999111 0 0 0-1.048576 10.01972622z m-29.04943844-6.33029177c-2.29133312-4.77684622-5.98076643 20.03945245-4.89335467 33.24374244 0.34952533 3.68943445 1.35926557 7.92257422 2.01947933 5.82542222 0.69905067-2.13598777 1.94180779-16.3888549 3.06805646-21.12686422 0.81555911-4.23313977 0.6602149-16.3888549-0.19418112-17.94230044z" fill="#CD8907"></path><path d="M796.97965511 753.05597155a38.37011399 38.37011399 0 0 1-6.44680021 10.87412111 69.94390243 69.94390243 0 0 1-22.60263823 16.03932956 464.09196999 464.09196999 0 0 0-42.09838534 22.25311289 174.7238309 174.7238309 0 0 0-24.81629867 20.00061668c-6.291456 6.60214557-13.04894578 12.66058467-20.19479666 18.36949731-7.37886777 5.43706112-15.96165689 9.16533134-25.08815133 10.60226845a60.54555534 60.54555534 0 0 1-32.70003712-4.93219044 38.797312 38.797312 0 0 1-18.17531733-14.25286599 43.03045177 43.03045177 0 0 1-5.16520732-22.6803109c0.46603378-13.86450489 2.13598777-27.69017401 5.00986311-41.32166201 1.94180779-11.37899179 3.92245134-22.75798243 5.16520732-34.21464576 2.097152-20.97152 2.33016889-41.94304 0.77672334-62.91456-0.3883611-3.45641757-0.3883611-6.99050667 0-10.48576a13.43730688 13.43730688 0 0 1 13.5926511-12.54407623 46.21501667 46.21501667 0 0 1 9.7090378 0.85439488c7.61188466 0.89323179 15.18493355 2.17482467 22.64147398 3.92245135 4.62150201 1.20392021 9.24300288 2.87387534 13.8645049 4.194304 7.76723001 2.25249621 15.92282112 2.95154688 23.96190378 2.17482467a182.14153443 182.14153443 0 0 1 25.63185778-4.00012402c3.57292601 0.15534421 7.14585088 0.77672334 10.48576 1.82529935 3.49525333 0.97090333 6.75748978 2.71852999 9.39834709 5.20404422a21.74824334 21.74824334 0 0 1 4.38848512 6.99050667c1.47577401 3.88361443 2.36900466 7.88373845 2.67969423 12.00036978 0.15534421 3.61176178 0.46603378 7.26235933 0.89323178 10.8741211 1.28159289 5.86425799 4.11663133 11.34015488 8.03908267 15.88398421 4.03895979 4.38848512 8.34977223 8.50511645 13.04894577 12.15571514 4.46615666 3.92245134 9.20416711 7.57304889 14.09752178 10.8741211 2.36900466 1.63111822 4.73801045 3.06805533 6.912834 4.81568199a20.97152 20.97152 0 0 1 5.6312411 6.21378446 15.22377045 15.22377045 0 0 1 1.51460978 10.91295687" fill="#F5BD0C"></path><path d="M796.97965511 753.05597155a38.37011399 38.37011399 0 0 1-6.44680021 10.87412111 69.94390243 69.94390243 0 0 1-22.60263823 16.03932956c-14.40821134 6.6798171-28.46689621 14.13635755-42.09838534 22.25311289a174.7238309 174.7238309 0 0 0-24.81629867 20.00061668c-6.291456 6.60214557-13.04894578 12.66058467-20.19479666 18.36949731-7.37886777 5.43706112-15.96165689 9.16533134-25.08815133 10.60226845a60.54555534 60.54555534 0 0 1-32.70003712-4.93219044 38.797312 38.797312 0 0 1-18.17531733-14.25286599 43.03045177 43.03045177 0 0 1-5.16520732-22.6803109c0.46603378-13.86450489 2.13598777-27.69017401 5.00986311-41.32166201 1.94180779-11.37899179 3.92245134-22.75798243 5.16520732-34.21464576 2.097152-20.97152 2.33016889-41.94304 0.77672334-62.91456-0.3883611-3.45641757-0.3883611-6.99050667 0-10.48576a13.43730688 13.43730688 0 0 1 13.5926511-12.54407623 46.21501667 46.21501667 0 0 1 9.7090378 0.85439488c7.61188466 0.89323179 15.18493355 2.17482467 22.64147398 3.92245135 4.62150201 1.20392021 9.24300288 2.87387534 13.8645049 4.194304 7.76723001 2.25249621 15.92282112 2.95154688 23.96190378 2.17482467a182.14153443 182.14153443 0 0 1 25.63185778-4.00012402c3.57292601 0.15534421 7.14585088 0.77672334 10.48576 1.82529935 3.49525333 0.97090333 6.75748978 2.71852999 9.39834709 5.20404422a21.74824334 21.74824334 0 0 1 4.38848512 6.99050667c1.47577401 3.88361443 2.36900466 7.88373845 2.67969423 12.00036978 0.15534421 3.61176178 0.46603378 7.26235933 0.89323178 10.8741211 1.28159289 5.86425799 4.11663133 11.34015488 8.03908267 15.88398421 4.03895979 4.38848512 8.34977223 8.50511645 13.04894577 12.15571514 4.46615666 3.92245134 9.20416711 7.57304889 14.09752178 10.8741211 2.36900466 1.63111822 4.73801045 3.06805533 6.912834 4.81568199a20.97152 20.97152 0 0 1 5.6312411 6.21378446 15.22377045 15.22377045 0 0 1 1.51460978 10.91295687m-476.75255467-116.1200822a21.16570112 21.16570112 0 0 1 11.68968135-1.048576c3.96128711 0.77672334 7.65072157 2.33016889 10.91295687 4.62150087 6.33029177 4.77684622 11.76735289 10.67994112 16.11700224 17.28208668 10.67994112 14.71889977 20.93268423 29.7484891 30.25335865 45.36062066 7.57304889 12.66058467 14.48588288 25.70953045 23.18518044 37.63222755 5.70891378 7.7283931 12.15571399 14.95191666 17.90346468 22.6803109 6.01960334 7.57304889 10.56343267 16.23350955 13.35963534 25.39884089 3.33990912 12.23338667 1.94180779 25.20465977-3.72827022 36.50597888a46.60337778 46.60337778 0 0 1-42.91394446 25.63185778 122.52804779 122.52804779 0 0 1-39.88472377-12.62174777c-26.48625266-10.52459577-55.22500267-13.86450489-82.52681444-22.0589329-8.42744377-2.4855131-16.62187179-5.51473266-25.12698823-7.80606578a73.28381155 73.28381155 0 0 1-11.1459749-3.57292488 19.22389333 19.22389333 0 0 1-8.73813333-7.3788689 16.777216 16.777216 0 0 1-2.17482354-8.69929643 25.90371043 25.90371043 0 0 1 1.74762667-8.73813333c2.01947933-5.67007801 5.35938845-10.75761266 7.57304889-16.35001913 3.33990912-9.28183979 4.66033778-19.22389333 3.80594176-28.97176576-0.46603378-9.78670933-2.21366045-19.57341867-2.71852999-29.360128a47.49660957 47.49660957 0 0 1 0.427198-13.12661845c1.16508445-8.66046066 7.88373845-15.53445888 16.62187066-16.85488868 4.00012288-0.6602149 8.03908267-0.97090333 12.03920668-0.7767222 4.03895979 0.23301689 8.15559111 0.23301689 12.15571399 0a28.35038777 28.35038777 0 0 0 11.61200867-3.22340068 27.57366557 27.57366557 0 0 0 8.3497711-7.88373845c2.17482467-3.22340067 4.15546823-6.44680021 5.98076757-9.86438087s3.88361443-6.60214557 6.291456-9.63136512a22.95216355 22.95216355 0 0 1 8.93231332-7.14585088" fill="#F5BD0C"></path><path d="M320.38244466 636.66403555a21.16570112 21.16570112 0 0 1 11.68968135-1.00974022c3.96128711 0.77672334 7.65072157 2.33016889 10.91295687 4.621502 6.33029177 4.77684622 11.76735289 10.67994112 16.11700224 17.28208555 10.67994112 14.71889977 20.93268423 29.7484891 30.25335865 45.36062179 7.57304889 12.66058467 14.48588288 25.70953045 23.18518044 37.63222756 5.70891378 7.7283931 12.15571399 14.95191666 17.90346468 22.68030976 6.01960334 7.57304889 10.56343267 16.23350955 13.35963534 25.39884089 3.33990912 12.1945509 1.94180779 25.165824-3.72827022 36.50598002a46.60337778 46.60337778 0 0 1-42.91394446 25.63185777 122.52804779 122.52804779 0 0 1-39.88472377-12.6217489c-26.48625266-10.52459577-55.22500267-13.86450489-82.52681444-22.05893177-8.42744377-2.4855131-16.62187179-5.51473266-25.12698823-7.80606578a73.28381155 73.28381155 0 0 1-11.1459749-3.57292601 19.22389333 19.22389333 0 0 1-8.73813333-7.37886776 16.777216 16.777216 0 0 1-2.17482354-8.69929757 25.90371043 25.90371043 0 0 1 1.74762667-8.73813333c2.01947933-5.67007801 5.35938845-10.75761266 7.57304889-16.350018 3.33990912-9.28183979 4.66033778-19.22389333 3.80594176-29.01060266-0.46603378-9.74787357-2.21366045-19.45691022-2.71852999-29.32129223a47.49660957 47.49660957 0 0 1 0.427198-13.12661732c1.16508445-8.66046066 7.88373845-15.53445888 16.62187066-16.85488867 4.00012288-0.6602149 8.03908267-0.97090333 12.03920668-0.77672334 4.03895979 0.23301689 8.15559111 0.23301689 12.15571399 0a28.35038777 28.35038777 0 0 0 11.61200867-3.22339954 27.57366557 27.57366557 0 0 0 8.3497711-7.92257422c2.17482467-3.18456377 4.15546823-6.44680021 5.98076757-9.82554624 1.82529934-3.41758066 3.88361443-6.60214557 6.291456-9.63136399a22.29194866 22.29194866 0 0 1 8.93231332-7.14585201" fill="#F5BD0C"></path><path d="M326.24670379 643.072a17.86462777 17.86462777 0 0 1 10.52459576-0.69905067c3.49525333 0.85439488 6.75748978 2.44667733 9.55369245 4.73801046 5.39822421 4.66033778 9.94205355 10.29157888 13.35963534 16.58303488 9.12649443 14.75773667 17.98113621 29.59314489 26.25323577 44.77807843 5.98076643 11.57317177 12.73825621 22.79681934 20.19479666 33.51559623 5.12637155 6.99050667 11.06830222 13.35963534 16.35001913 20.19479666 5.55356957 6.71865401 9.70903666 14.36937443 12.3110582 22.64147513 3.02921955 10.8741211 1.74762667 22.48612978-3.41758065 32.54469177a43.10812445 43.10812445 0 0 1-16.46652644 17.1655771c-6.99050667 4.07779555-15.02958933 6.05843911-23.068672 5.67007801a131.92639488 131.92639488 0 0 1-36.54481579-11.26248334c-23.068672-8.46628067-48.15682333-9.51485667-71.84687445-16.11700111-8.50511645-2.25249621-16.73838023-5.39822421-25.32116822-7.49537621a82.60448711 82.60448711 0 0 1-11.26248334-3.26223644 18.56367843 18.56367843 0 0 1-8.93231331-7.22352356 16.07816533 16.07816533 0 0 1-1.86413511-8.34977223 27.45715712 27.45715712 0 0 1 1.78646243-8.46628068c2.05831623-5.43706112 5.32055267-10.33041579 7.37886777-15.72864 2.87387534-8.34977223 3.88361443-17.12674133 2.95154802-25.9425462-0.62137799-8.69929757-2.21366045-17.35975822-2.64085846-26.13672846-0.31068957-3.88361443-0.15534421-7.84490155 0.50486955-11.68968022a20.03945245 20.03945245 0 0 1 5.24288-10.33041578 20.85501155 20.85501155 0 0 1 11.37899179-5.32055154c4.27197667-0.50486955 8.50511645-0.50486955 12.66058468 0 4.27197667 0.54370645 8.50511645 0.69905067 12.73825621 0.62137799 8.34977223 0 15.92282112-4.8545189 19.49574599-12.42756779 1.74762667-3.41758066 3.26223645-6.99050667 4.50499356-10.56343153 1.28159289-3.65059755 3.02921955-7.02934243 5.04869888-10.29158002a19.61225443 19.61225443 0 0 1 8.73813334-7.37886777" fill="#F5BD0C"></path></symbol><symbol id="icon-download1" viewBox="0 0 1024 1024"><path d="M192 704v128h640v-128h64v192H128v-192h64z"></path><path d="M544 132.48V627.2l137.856-137.856 45.248 45.312L512 749.696l-215.04-215.04 45.184-45.312L480 627.2 480 132.48h64z"></path></symbol><symbol id="icon-energy" viewBox="0 0 1024 1024"><path d="M800 64L586.624 437.312h362.688L352 960l106.688-373.376H128L352 64h448z"></path></symbol><symbol id="icon-feedback" viewBox="0 0 1024 1024"><path d="M960 128v640H512l-192 192v-192H64V128z"></path></symbol><symbol id="icon-Tips" viewBox="0 0 1024 1024"><path d="M512 512m-448 0a448 448 0 1 0 896 0 448 448 0 1 0-896 0Z" fill="#4771F8"></path><path d="M544 647.488v62.784h-64v-62.784h64z m0-320v254.784h-64V327.488h64z" fill="#FFFFFF"></path></symbol><symbol id="icon-earlywarning1" viewBox="0 0 1024 1024"><path d="M512 512m-448 0a448 448 0 1 0 896 0 448 448 0 1 0-896 0Z" fill="#FA543C"></path><path d="M544 647.488v62.784h-64v-62.784h64z m0-320v254.784h-64V327.488h64z" fill="#FFFFFF"></path></symbol><symbol id="icon-checkmark1" viewBox="0 0 1024 1024"><path d="M512 512m-448 0a448 448 0 1 0 896 0 448 448 0 1 0-896 0Z" fill="#2FAA76"></path><path d="M739.52 361.664l45.824 44.672-305.024 312.96L297.344 536.32l45.312-45.248 136.96 137.024z" fill="#FFFFFF"></path></symbol><symbol id="icon-logo-shequ" viewBox="0 0 4251 1024"><path d="M1959.377455 721.392485l38.725818-37.981091c-86.388364-104.261818-163.095273-185.437091-230.120728-242.036364 4.468364-17.873455 8.192-36.491636 11.915637-55.854545h198.097454v-52.130909h-189.905454c4.468364-40.96 7.447273-84.898909 7.447273-131.072V168.060121h-53.620364V213.488485a1218.870303 1218.870303 0 0 1-7.447273 119.901091h-168.308363v52.130909h160.116363c-25.320727 135.540364-84.898909 232.354909-177.245091 291.188363l32.768 43.93891c78.941091-52.130909 135.540364-128.837818 171.287273-229.376 69.259636 65.536 137.774545 142.242909 206.289455 230.120727zM1484.986182 333.389576l38.725818-39.470546c-35.746909-37.981091-78.941091-75.962182-130.327273-114.688l-37.236363 35.002182c55.109818 42.449455 97.559273 81.92 128.837818 119.156364z m-101.282909 519.819636c41.704727-70.004364 72.238545-104.261818 90.112-104.261818 9.681455 0 20.107636 5.957818 30.533818 18.618182 23.831273 26.810182 50.641455 45.428364 81.92 54.365091 31.278545 8.192 71.493818 12.660364 122.135273 13.405091 49.896727 0.744727 96.069818 1.489455 138.519272 1.489454h157.882182l13.405091-54.365091c-18.618182 1.489455-44.683636 2.234182-78.196364 2.978909-34.257455 0-67.770182 0.744727-100.538181 0.744728-61.067636 0-111.709091-0.744727-152.669091-1.489455-46.173091-1.489455-81.92-6.702545-105.751273-16.384-21.597091-10.426182-41.704727-26.065455-61.067636-46.917818a125.98303 125.98303 0 0 0-18.618182-17.128727v-280.017455h-158.626909v52.130909h107.240727V701.284848c-31.278545 13.405091-66.280727 52.130909-106.496 116.177455l40.215273 35.746909z m905.588363-370.874182v-126.603636c23.086545 20.107636 50.641455 46.917818 82.664728 79.685818l26.810181-40.96a1522.967273 1522.967273 0 0 0-109.474909-83.409454v-20.107637h107.985455V241.788121h-107.985455V168.060121h-50.641454v73.728h-132.561455v49.152h116.922182c-34.257455 55.854545-79.685818 104.261818-137.029818 145.966546l29.044364 43.194181c47.662545-40.215273 88.622545-90.112 123.624727-150.434909v152.669091h50.641454z m309.806546 0V302.855758c26.810182 62.557091 71.493818 120.645818 132.561454 172.776727l34.257455-42.449455c-63.301818-41.704727-108.730182-89.367273-137.029818-142.242909h105.751272V241.788121H2599.098182V168.060121h-50.641455v73.728h-118.411636v49.152h89.367273a466.695758 466.695758 0 0 1-121.390546 143.732364l29.044364 42.449454c47.662545-44.683636 88.622545-102.772364 121.390545-173.521454v178.734545h50.641455zM2123.217455 850.230303c288.954182-25.320727 463.965091-114.688 525.032727-268.101818v-42.449455h-285.975273a414.440727 414.440727 0 0 0 47.662546-55.109818L2368.232727 459.248485c-48.407273 64.791273-124.369455 116.922182-228.631272 155.648l24.576 43.194182c50.641455-19.362909 96.069818-42.449455 136.28509-69.259637h289.69891c-30.533818 55.109818-81.175273 99.793455-151.924364 134.050909-35.746909-32.768-79.685818-65.536-131.816727-99.793454L2271.418182 656.601212c45.428364 29.789091 84.154182 59.578182 116.177454 87.877818-77.451636 29.044364-174.266182 47.662545-290.443636 56.599273l26.065455 49.152z m869.096727-1.489455V533.721212c29.789091 20.852364 59.578182 46.917818 90.112 78.196364l29.789091-46.173091a684.342303 684.342303 0 0 0-119.901091-87.133091c41.704727-53.620364 72.983273-107.240727 92.346182-160.861091V272.321939h-93.835637l15.639273-5.957818c-9.681455-31.278545-23.086545-64.791273-39.470545-102.027636l-51.386182 14.149818c15.639273 29.789091 29.044364 61.067636 40.96 93.835636h-114.688v51.386182h188.416c-34.257455 81.175273-103.517091 164.584727-206.289455 249.483637l16.384 56.599272a1511.641212 1511.641212 0 0 0 99.048727-90.856727v309.806545h52.875637z m511.627636-23.831272V772.033939h-187.671273V445.843394h169.797819v-52.875636h-169.797819V171.03903h-55.109818v221.928728h-166.074182v52.875636h166.074182V772.033939h-192.139636v52.875637h434.920727z m734.301091-5.957818v-51.386182h-561.524364V249.235394h539.927273V197.849212h-591.313454v621.102546h612.910545z m-484.817454-105.006546c85.643636-37.236364 160.861091-90.856727 226.39709-160.861091a1762.707394 1762.707394 0 0 1 152.669091 158.626909l41.704728-41.704727a2653.680485 2653.680485 0 0 0-158.626909-158.626909c44.683636-56.599273 83.409455-122.88 116.922181-198.842182l-48.407272-26.065454c-31.278545 70.749091-67.770182 133.306182-110.219637 187.671272-58.833455-52.130909-122.88-104.261818-191.394909-156.392727l-38.725818 37.236364a3366.043152 3366.043152 0 0 1 195.118545 160.116363 610.800485 610.800485 0 0 1-216.715636 150.434909l31.278546 48.407273z" fill="#FFFFFF"></path><path d="M15.515152 20.883394L639.565576 209.454545v546.443637L15.515152 944.469333V20.883394z m899.878787 0.03103v923.523879l-310.365091-94.083879 130.792728-39.749818V154.779152l-130.792728-39.811879L915.393939 20.914424zM195.801212 253.952v457.479758l263.478303-79.623758V333.575758L195.801212 253.98303z" fill="#4771F8"></path></symbol><symbol id="icon-logo-DM8wendang" viewBox="0 0 4406 1024"><path d="M1541.585455 775.757576c83.409455 0 147.456-24.576 192.139636-72.983273 42.449455-46.173091 64.046545-110.964364 64.046545-192.884364 0-83.409455-20.107636-148.200727-59.578181-192.884363-43.194182-49.152-106.496-72.983273-190.650182-72.983273h-190.650182V775.757576h184.692364z m-10.426182-52.875637h-113.198546V296.897939h119.901091c70.004364 0 120.645818 17.873455 153.413818 54.365091 30.533818 34.257455 46.173091 87.133091 46.173091 158.626909 0 69.259636-17.128727 122.135273-49.896727 157.882182-35.002182 36.491636-87.133091 55.109818-156.392727 55.109818zM1943.738182 775.757576V352.752485h2.234182L2129.92 775.757576h55.109818l183.947637-423.005091h2.234181V775.757576h61.067637V244.022303h-75.962182l-197.352727 453.538909h-2.234182L1958.632727 244.022303h-75.962182V775.757576h61.067637z m765.579636 10.426182c61.067636 0 108.730182-14.894545 142.987637-43.93891 32.768-28.299636 49.152-66.280727 49.152-113.198545 0-34.257455-10.426182-64.046545-31.278546-89.367273-19.362909-23.831273-43.194182-39.470545-70.749091-46.173091v-1.489454c27.554909-9.681455 48.407273-25.320727 63.301818-46.173091 13.405091-19.362909 20.107636-43.194182 20.107637-71.493818 0-38.725818-14.894545-71.493818-43.194182-97.559273-31.278545-29.044364-75.217455-43.194182-130.327273-43.194182-55.854545 0-99.048727 14.149818-130.327273 43.194182-29.044364 26.065455-43.194182 58.833455-43.194181 97.559273 0 28.299636 6.702545 52.130909 20.107636 71.493818 14.149818 20.852364 35.002182 36.491636 63.301818 46.173091v1.489454c-28.299636 6.702545-51.386182 22.341818-70.749091 46.173091-20.852364 25.320727-31.278545 55.109818-31.278545 89.367273 0 46.917818 16.384 84.898909 49.152 113.198545 33.512727 29.044364 81.175273 43.938909 142.987636 43.93891z m0-314.27491c-41.704727 0-72.238545-10.426182-91.601454-29.78909-16.384-16.384-24.576-38.725818-24.576-65.536 0-26.065455 8.936727-47.662545 27.554909-64.046546 20.852364-19.362909 50.641455-29.044364 88.622545-29.044364 37.236364 0 67.025455 9.681455 88.622546 29.044364 17.873455 16.384 27.554909 37.981091 27.554909 64.046546 0 26.810182-8.192 49.152-24.576 65.536-20.107636 19.362909-50.641455 29.789091-91.601455 29.78909z m0 264.378182c-43.194182 0-76.706909-10.426182-99.048727-30.533818-22.341818-19.362909-32.768-45.428364-32.768-76.706909 0-32.023273 10.426182-58.088727 32.768-77.451636 23.086545-21.597091 55.854545-32.023273 99.048727-32.023273 42.449455 0 75.962182 10.426182 99.793455 32.023273 20.852364 19.362909 32.023273 45.428364 32.023272 77.451636 0 31.278545-11.170909 56.599273-32.023272 75.962182-23.831273 20.852364-56.599273 31.278545-99.793455 31.278545z m907.822546 116.922182l29.044363-44.683636c-119.156364-43.938909-218.205091-99.048727-297.146182-166.074182 72.983273-78.941091 128.093091-177.989818 164.584728-295.656727h116.177454V293.174303h-284.485818c-23.831273-51.386182-49.152-95.325091-77.451636-131.072l-53.620364 19.362909a572.291879 572.291879 0 0 1 74.472727 111.709091h-308.317091v53.620364h114.688c33.512727 114.688 93.090909 214.481455 179.479273 299.380363-80.430545 72.983273-183.202909 125.858909-308.317091 159.371637l28.299637 46.917818c126.603636-36.491636 232.354909-93.835636 317.253818-172.032 80.430545 69.259636 181.713455 126.603636 305.338182 172.776727z m-305.338182-244.270545c-77.451636-74.472727-131.816727-161.605818-163.84-262.144h309.806545c-31.278545 102.772364-79.685818 189.905455-145.966545 262.144z m1047.086545 241.291636V425.735758h-153.413818V167.315394h-54.365091v258.420364h-166.074182v52.130909h320.232728v117.666909h-301.614546v50.641454h301.614546v120.645818h-333.637819v52.13091h333.637819V850.230303h53.620363z m-483.328-2.978909v-379.810909c20.852364 27.554909 44.683636 64.046545 72.983273 109.474909l30.533818-44.683636c-35.002182-46.173091-69.259636-87.877818-103.517091-124.369455v-43.194182h88.622546v-51.386182h-88.622546v-145.221818h-54.365091v145.221818h-101.282909v51.386182h100.538182c-23.086545 91.601455-61.812364 173.521455-116.922182 245.76l23.086546 57.344c38.725818-58.088727 70.004364-122.135273 94.580363-193.629091v373.108364h54.365091z m423.749818-459.496727a895.100121 895.100121 0 0 0 80.430546-160.116364l-47.662546-22.341818c-19.362909 52.130909-46.173091 105.006545-78.94109 158.626909l46.17309 23.831273z m-247.249454-1.489455l46.173091-23.086545c-23.831273-55.109818-49.152-106.496-75.962182-152.669091l-46.917818 23.086545a1165.28097 1165.28097 0 0 1 76.706909 152.669091z" fill="#FFFFFF"></path><path d="M15.515152 20.883394L639.565576 209.454545v546.443637L15.515152 944.469333V20.883394z m899.878787 0.03103v923.523879l-310.365091-94.083879 130.792728-39.749818V154.779152l-130.792728-39.811879L915.393939 20.914424zM195.801212 253.952v457.479758l263.478303-79.623758V333.575758L195.801212 253.98303z" fill="#4771F8"></path></symbol><symbol id="icon-kuozhanVIP" viewBox="0 0 1024 1024"><path d="M241.74 253.58H439.6v246.94l246.93-246.94h188.65l-575.92 639.6V285.79h-57.52z"></path></symbol><symbol id="icon-damengyunshipeizhongxin" viewBox="0 0 6516 1024"><path d="M1959.377455 721.392485l38.725818-37.981091c-86.388364-104.261818-163.095273-185.437091-230.120728-242.036364 4.468364-17.873455 8.192-36.491636 11.915637-55.854545h198.097454v-52.130909h-189.905454c4.468364-40.96 7.447273-84.898909 7.447273-131.072V168.060121h-53.620364V213.488485a1218.870303 1218.870303 0 0 1-7.447273 119.901091h-168.308363v52.130909h160.116363c-25.320727 135.540364-84.898909 232.354909-177.245091 291.188363l32.768 43.93891c78.941091-52.130909 135.540364-128.837818 171.287273-229.376 69.259636 65.536 137.774545 142.242909 206.289455 230.120727zM1484.986182 333.389576l38.725818-39.470546c-35.746909-37.981091-78.941091-75.962182-130.327273-114.688l-37.236363 35.002182c55.109818 42.449455 97.559273 81.92 128.837818 119.156364z m-101.282909 519.819636c41.704727-70.004364 72.238545-104.261818 90.112-104.261818 9.681455 0 20.107636 5.957818 30.533818 18.618182 23.831273 26.810182 50.641455 45.428364 81.92 54.365091 31.278545 8.192 71.493818 12.660364 122.135273 13.405091 49.896727 0.744727 96.069818 1.489455 138.519272 1.489454h157.882182l13.405091-54.365091c-18.618182 1.489455-44.683636 2.234182-78.196364 2.978909-34.257455 0-67.770182 0.744727-100.538181 0.744728-61.067636 0-111.709091-0.744727-152.669091-1.489455-46.173091-1.489455-81.92-6.702545-105.751273-16.384-21.597091-10.426182-41.704727-26.065455-61.067636-46.917818a125.98303 125.98303 0 0 0-18.618182-17.128727v-280.017455h-158.626909v52.130909h107.240727V701.284848c-31.278545 13.405091-66.280727 52.130909-106.496 116.177455l40.215273 35.746909z m905.588363-370.874182v-126.603636c23.086545 20.107636 50.641455 46.917818 82.664728 79.685818l26.810181-40.96a1522.967273 1522.967273 0 0 0-109.474909-83.409454v-20.107637h107.985455V241.788121h-107.985455V168.060121h-50.641454v73.728h-132.561455v49.152h116.922182c-34.257455 55.854545-79.685818 104.261818-137.029818 145.966546l29.044364 43.194181c47.662545-40.215273 88.622545-90.112 123.624727-150.434909v152.669091h50.641454z m309.806546 0V302.855758c26.810182 62.557091 71.493818 120.645818 132.561454 172.776727l34.257455-42.449455c-63.301818-41.704727-108.730182-89.367273-137.029818-142.242909h105.751272V241.788121H2599.098182V168.060121h-50.641455v73.728h-118.411636v49.152h89.367273a466.695758 466.695758 0 0 1-121.390546 143.732364l29.044364 42.449454c47.662545-44.683636 88.622545-102.772364 121.390545-173.521454v178.734545h50.641455zM2123.217455 850.230303c288.954182-25.320727 463.965091-114.688 525.032727-268.101818v-42.449455h-285.975273a414.440727 414.440727 0 0 0 47.662546-55.109818L2368.232727 459.248485c-48.407273 64.791273-124.369455 116.922182-228.631272 155.648l24.576 43.194182c50.641455-19.362909 96.069818-42.449455 136.28509-69.259637h289.69891c-30.533818 55.109818-81.175273 99.793455-151.924364 134.050909-35.746909-32.768-79.685818-65.536-131.816727-99.793454L2271.418182 656.601212c45.428364 29.789091 84.154182 59.578182 116.177454 87.877818-77.451636 29.044364-174.266182 47.662545-290.443636 56.599273l26.065455 49.152z m1310.72-587.589818v-52.130909H2903.691636v52.130909h530.245819z m-5.213091 592.802909l47.662545-33.512727c-37.236364-75.962182-90.112-166.074182-158.626909-268.846546l-43.194182 26.810182a2789.624242 2789.624242 0 0 1 89.367273 147.456c-133.306182 17.873455-266.612364 30.533818-400.663273 37.981091 50.641455-55.109818 110.964364-152.669091 179.479273-293.422546h357.469091V418.288485H2832.197818v53.620363h250.973091c-78.196364 158.626909-141.498182 255.441455-189.160727 291.188364-2.978909 1.489455-6.702545 3.723636-12.660364 5.213091l14.149818 54.365091c178.734545-11.915636 343.319273-26.810182 494.498909-46.173091a1536 1536 0 0 1 38.725819 78.941091z m752.174545-124.369455V515.10303h-143.732364v-90.856727h195.863273v-49.152h-195.863273V262.640485c63.301818-10.426182 119.156364-26.065455 167.563637-46.917818l-25.320727-43.194182c-102.027636 38.725818-230.865455 58.833455-385.768728 58.833454l16.384 48.407273c62.557091 0 121.390545-3.723636 175.755637-9.681454v105.006545h-193.629091v49.152h193.629091V515.10303h-142.987637v215.970909h338.106182z m-460.241454-401.408l36.491636-36.491636c-34.257455-38.725818-76.706909-78.196364-126.603636-117.666909l-37.236364 35.002182c54.365091 42.449455 96.814545 81.92 127.348364 119.156363z m-103.517091 522.798546c41.704727-69.259636 71.493818-103.517091 90.112-103.517091 8.936727 0 18.618182 5.957818 29.044363 18.618182 23.086545 26.065455 49.152 43.194182 78.196364 52.130909 29.789091 8.192 69.259636 12.660364 116.922182 13.405091 47.662545 0.744727 92.346182 1.489455 132.561454 1.489454h174.266182l11.915636-49.896727c-19.362909 1.489455-47.662545 2.234182-84.154181 2.978909-37.236364 0-72.983273 0.744727-108.730182 0.744727-58.088727 0-107.240727-0.744727-146.711273-1.489454-44.683636-1.489455-78.196364-6.702545-101.282909-17.128727-20.852364-10.426182-40.215273-26.065455-58.088727-48.407273a126.665697 126.665697 0 0 0-17.873455-17.128727V425.735758h-155.648v49.152h105.751273V701.284848c-31.278545 13.405091-66.280727 51.386182-106.496 114.688l40.215273 36.491637z m513.117091-168.308364h-237.568v-122.135273h237.568v122.135273z m256.186181 163.095273v-40.215273h212.247273v40.215273h47.662546V335.623758H4561.454545V249.235394h96.814546V198.593939H4319.418182v50.641455h100.538182v86.388364h-81.175273v511.627636h47.662545z m510.138182-11.915636c35.746909 0 58.833455-11.915636 70.749091-34.257455 11.915636-23.086545 20.107636-72.983273 25.320727-150.434909l-52.875636-17.128727c-2.234182 59.578182-5.957818 99.793455-11.915636 119.901091-5.957818 20.852364-19.362909 31.278545-40.215273 31.278545h-116.922182c-15.639273-0.744727-23.086545-14.149818-23.086545-39.470545v-244.270546h203.310545v-301.614545h-268.101818v50.641454h215.970909v198.842182h-203.310545V764.586667c0 46.917818 17.873455 70.749091 53.620363 70.749091h147.456z m-381.300363-499.712h-49.152V249.235394h49.152v86.388364z m83.409454 299.380363h-212.247273V384.775758h43.938909v48.407272c-0.744727 68.514909-14.149818 117.666909-40.96 148.945455l28.299637 26.065454c31.278545-37.236364 47.662545-95.325091 49.152-175.010909V384.775758h46.917818v134.050909c0 34.257455 15.639273 51.386182 46.917818 51.386181h37.981091v64.791273z m0-106.496h-29.044364c-12.660364 0-18.618182-6.702545-18.618181-19.362909V384.775758h47.662545v143.732363z m0 227.886546h-212.247273v-72.238546h212.247273v72.238546z m828.136727 99.048727v-253.952h213.736728v46.917818h53.620363V298.387394h-267.357091v-134.050909h-55.109818v134.050909h-266.612363v350.021818h53.620363v-46.917818h212.992v253.952h55.109818z m-55.109818-306.082909h-212.992v-198.842182h212.992v198.842182z m268.846546 0h-213.736728v-198.842182h213.736728v198.842182z m569.716363-158.626909l44.683637-30.533818c-36.491636-54.365091-89.367273-117.666909-157.882182-189.905455l-44.683637 27.554909c67.025455 70.004364 119.156364 134.795636 157.882182 192.884364z m29.044364 434.920727c29.789091 0 52.130909-9.681455 66.280727-28.299636 15.639273-22.341818 26.065455-84.154182 32.023273-186.181819l-50.641455-17.128727c-3.723636 87.133091-10.426182 139.264-19.362909 157.137455-7.447273 14.149818-20.107636 21.597091-37.981091 21.597091h-140.008727c-26.810182 0-40.215273-11.170909-40.215273-33.512728V322.963394h-53.620363v427.473454c0 49.896727 25.320727 75.217455 77.451636 75.217455h166.074182z m201.076364-114.688l49.152-22.341818c-35.746909-109.474909-76.706909-212.247273-124.369455-309.061818l-52.130909 17.128727c46.173091 90.856727 88.622545 195.863273 127.348364 314.274909z m-592.80291 32.768c38.725818-92.346182 68.514909-202.565818 89.367273-330.658909l-51.386182-10.426182c-17.873455 113.198545-45.428364 217.460364-84.154181 312.040727l46.17309 29.044364z" fill="#FFFFFF"></path><path d="M15.515152 20.883394L639.565576 209.454545v546.443637L15.515152 944.469333V20.883394z m899.878787 0.03103v923.523879l-310.365091-94.083879 130.792728-39.749818V154.779152l-130.792728-39.811879L915.393939 20.914424zM195.801212 253.952v457.479758l263.478303-79.623758V333.575758L195.801212 253.98303z" fill="#4771F8"></path></symbol><symbol id="icon-abuloused" viewBox="0 0 1102 1024"><path d="M685.97333333 0.55794865l63.95076938 36.92307656a73.84615406 73.84615406 0 0 1 27.02769187 100.87384688L692.47179458 284.71794865h229.66153875a147.69230813 147.69230813 0 0 1 146.80615406 163.93846125l-40.98461531 369.23076938A147.69230813 147.69230813 0 0 1 881.14871802 949.33333334H274.87179458V284.71794865h161.7230775L585.09948739 27.58564147A73.84615406 73.84615406 0 0 1 685.97333333 0.55794865zM201.02564145 284.71794865v664.61538469H53.33333333V284.71794865h147.69230813z"></path></symbol><symbol id="icon-arrow-up" viewBox="0 0 1024 1024"><path d="M813.248 640L512 338.752 210.752 640 256 685.248l256-256 256 256z"></path></symbol><symbol id="icon-triangle" viewBox="0 0 1024 1024"><path d="M1024 1024V0H0z"></path></symbol><symbol id="icon-i-qita" viewBox="0 0 1024 1024"><path d="M35.328 0h953.344c19.498667 0 35.328 15.829333 35.328 35.328v953.344a35.328 35.328 0 0 1-35.328 35.328H35.328A35.328 35.328 0 0 1 0 988.672V35.328C0 15.829333 15.829333 0 35.328 0z" fill="#3187E7"></path><path d="M340.394667 512c0 36.266667 29.397333 65.664 65.664 65.664h84.736v40.234667H406.058667a105.898667 105.898667 0 0 1 0-211.84h84.736v40.277333H406.058667A65.706667 65.706667 0 0 0 340.394667 512z m86.869333 21.205333v-42.368h169.514667v42.368h-169.514667z m190.634667-127.146666a105.941333 105.941333 0 0 1 0 211.84h-84.736v-40.234667h84.736a65.664 65.664 0 1 0 0-131.328h-84.736v-40.277333h84.736z" fill="#FFFFFF"></path></symbol><symbol id="icon-application" viewBox="0 0 1024 1024"><path d="M512 64l387.968 224v448L512 960l-387.968-224v-448L512 64zM187.968 366.016v332.992L480 867.52V530.688L187.968 366.016z m648-3.584L544 530.432v337.088l291.968-168.512V362.432zM512 137.92L216.32 308.544l295.488 166.592 292.608-168.448L512 137.92z"></path></symbol><symbol id="icon-handOperationandmaintenance" viewBox="0 0 1024 1024"><path d="M704 64v192h256v640H64V256h256V64h384z m192 448H128v320h768V512z m0-192H128v128h768V320z m-256-192H384v128h256V128z"></path></symbol><symbol id="icon-SQL" viewBox="0 0 1024 1024"><path d="M960 128v768H64V128h896z m-64 256H128v448h768V384z m-339.84 45.12l56.576 29.952-142.08 268.608-56.512-29.888L556.16 429.12z m-265.216 14.976l56.832 29.568-55.04 105.536 54.912 103.552-56.576 30.016-70.592-133.248L290.944 444.16z m434.304 0l70.528 135.424-70.592 133.248-56.576-30.016 54.912-103.552-55.04-105.6 56.768-29.44zM896 192H128v128h768V192z"></path></symbol><symbol id="icon-user" viewBox="0 0 1024 1024"><path d="M576 672c187.968 0 343.616 120.576 351.68 275.392L928 960h-64c0-118.272-119.936-217.792-273.536-223.744L576 736H448c-155.52 0-280.256 96-287.68 212.992L160 960h-64c0-156.608 150.72-281.28 336.832-287.744L448 672h128zM512 128a192 192 0 0 1 192 192v64a192 192 0 1 1-384 0V320a192 192 0 0 1 192-192z m0 64a128 128 0 0 0-127.68 118.4L384 320v64a128 128 0 0 0 255.68 9.6L640 384V320a128 128 0 0 0-128-128z"></path></symbol><symbol id="icon-hand" viewBox="0 0 1024 1024"><path d="M342.4 32.32A128 128 0 0 0 224 160l-0.064 226.304-0.512-0.384A128 128 0 0 0 49.152 561.152l176 304.832 3.328 4.736c1.28 1.472 2.56 2.752 3.968 3.968l2.496 1.664 1.152 2.368A96 96 0 0 0 320 928h512a96 96 0 0 0 96-96V448l-0.448-9.216A96 96 0 0 0 832 352H479.936l0.064-192a128 128 0 0 0-128-128l-9.6 0.32z m9.6 63.68a64 64 0 0 1 64 64V384a32 32 0 0 0 32 32h384a32 32 0 0 1 32 32v384a32 32 0 0 1-32 32H320a32 32 0 0 1-29.44-19.264l-3.456-10.56a31.744 31.744 0 0 0-14.336-15.36l-1.344-0.512-166.848-289.152a64 64 0 1 1 110.848-64l12.8 22.208c16.448 28.352 59.776 16.704 59.776-16V160a64 64 0 0 1 64-64z"></path></symbol><symbol id="icon-ask" viewBox="0 0 1024 1024"><path d="M960 128v640H512l-192 192v-192H64V128h896z m-64 64H128v512h256v101.376L485.504 704H896V192z m-128 256v64H256V448h512z m0-128v64H256V320h512z"></path></symbol><symbol id="icon-logo-copy" viewBox="0 0 1024 1024"><path d="M17.066667 0l686.455466 207.428267v601.088L17.066667 1015.944533V0z m989.866666 0.034133v1015.876267l-341.4016-103.492267 143.872-43.7248V147.285333l-143.872-43.793066L1006.933333 0.034133zM215.381333 256.375467v503.227733l289.826134-87.586133v-328.055467L215.381333 256.4096z" fill="#ffffff"></path></symbol><symbol id="icon-logo" viewBox="0 0 1024 1024"><path d="M17.066667 0l686.455466 207.428267v601.088L17.066667 1015.944533V0z m989.866666 0.034133v1015.876267l-341.4016-103.492267 143.872-43.7248V147.285333l-143.872-43.793066L1006.933333 0.034133zM215.381333 256.375467v503.227733l289.826134-87.586133v-328.055467L215.381333 256.4096z" fill="#4771F8"></path></symbol><symbol id="icon-time" viewBox="0 0 1024 1024"><path d="M512 64a448 448 0 1 1 0 896A448 448 0 0 1 512 64z m0 64a384 384 0 1 0 0 768A384 384 0 0 0 512 128z"></path><path d="M544 192v288h198.784v64H480V192z"></path></symbol><symbol id="icon-Python" viewBox="0 0 1024 1024"><path d="M420.672 85.312A121.984 121.984 0 0 0 298.688 207.36v71.68h183.04c16.64 0 30.272 24.32 30.272 40.96H207.36a121.984 121.984 0 0 0-122.048 122.048v161.28c0 67.456 54.656 122.048 122.048 122.048h50.368V611.008a121.6 121.6 0 0 1 121.6-121.984h224a121.664 121.664 0 0 0 121.984-121.664v-160a121.984 121.984 0 0 0-121.984-122.048H420.672z m-30.72 68.736c17.088 0 30.72 5.12 30.72 30.272 0 25.152-13.632 38.016-30.72 38.016-16.64 0-30.272-12.8-30.272-37.952 0-25.216 13.632-30.336 30.272-30.336z" fill="#3C78AA"></path><path d="M766.272 298.688v114.304a121.6 121.6 0 0 1-121.6 121.984h-224a121.6 121.6 0 0 0-121.984 121.6v160c0 67.392 54.592 122.048 121.984 122.048h182.656a122.048 122.048 0 0 0 121.984-121.984v-71.68h-183.04c-16.64 0-30.272-24.32-30.272-40.96h304.64a122.048 122.048 0 0 0 122.048-122.048v-161.28a122.048 122.048 0 0 0-122.048-121.984h-50.368zM355.52 493.44l-0.704 1.088c2.048-0.512 4.224-0.256 6.4-1.088h-5.76z m278.528 308.224c16.64 0 30.272 12.8 30.272 37.952a30.272 30.272 0 0 1-30.272 30.336c-17.088 0-30.72-5.12-30.72-30.336 0-25.152 13.632-37.952 30.72-37.952z" fill="#FDD835"></path></symbol><symbol id="icon-QT" viewBox="0 0 1024 1024"><path d="M512 64c247.296 0 448 200.704 448 448 0 93.184-28.672 179.2-77.056 252.672L960 841.728V960h-118.272l-77.056-77.056A456.704 456.704 0 0 1 512 960c-247.296 0-448-200.704-448-448s200.704-448 448-448z m216.832 139.776c-4.992 1.664-65.344 58.688-74.24 67.072a272.128 272.128 0 0 1 97.536 97.792l-188.16 189.952a76.992 76.992 0 0 1-50.176 19.712c-17.92 0-35.84-7.168-50.176-21.504-28.672-26.88-26.88-71.68 0-98.56l188.8-187.072A271.104 271.104 0 0 0 512 232.448 279.936 279.936 0 0 0 232.448 512 279.936 279.936 0 0 0 512 791.552 279.936 279.936 0 0 0 791.552 512c0-51.968-14.336-102.144-37.632-139.776 0 0 66.304-68.096 69.888-73.472-26.88-37.632-57.344-69.888-94.976-94.976z" fill="#4B9EE2"></path></symbol><symbol id="icon-division" viewBox="0 0 1024 1024"><path d="M699.648 192l52.032 37.184-443.584 621.44L256 813.312z"></path></symbol><symbol id="icon-success" viewBox="0 0 1024 1024"><path d="M873.344 227.136l45.312 45.248-514.816 514.752-298.496-298.496 45.312-45.248 253.184 253.248z"></path></symbol><symbol id="icon-addto" viewBox="0 0 1024 1024"><path d="M544 64v416H960v64H544V960h-64V544H64v-64h416V64h64z"></path></symbol><symbol id="icon-i-word" viewBox="0 0 1024 1024"><path d="M35.328 0h953.344c19.52 0 35.328 15.808 35.328 35.328v953.344a35.328 35.328 0 0 1-35.328 35.328H35.328A35.328 35.328 0 0 1 0 988.672V35.328C0 15.808 15.808 0 35.328 0z" fill="#4771F8"></path><path d="M705.792 341.44a32 32 0 0 1 61.824 15.552l-1.408 5.568-112 320a32 32 0 0 1-57.792 5.76l-2.56-5.76L512 448.768l-81.792 233.792a32 32 0 0 1-57.792 5.76l-2.56-5.76-112-320a32 32 0 0 1 57.984-26.368l2.368 5.248L400 575.168l81.792-233.728a32 32 0 0 1 57.856-5.696l2.56 5.696L624 575.168l81.792-233.728z" fill="#FFFFFF"></path></symbol><symbol id="icon-i-zip" viewBox="0 0 1082 1024"><path d="M0.064 340.16H1023.36v343.68H0z" fill="#F95F5D"></path><path d="M1018.752 340.16V65.92c0-37.12-27.328-65.024-63.68-65.024H63.808C27.392 0.96 0.128 28.864 0.128 65.984v274.112h1018.624z" fill="#55C7F7"></path><path d="M0.064 683.84v274.176c0 37.12 27.328 64.96 63.68 64.96h895.872c36.416 0 63.68-27.84 63.68-64.96v-274.176H0z" fill="#7ECF3B"></path><path d="M400.32 0.96h227.328v1022.08H400.32z" fill="#FDAF42"></path><path d="M627.648 442.304v144H391.168v-144h236.48z m40.96-55.744H350.272c-4.544 0-13.632 4.672-13.632 13.952v227.648c0 4.608 4.48 13.952 13.632 13.952h318.336c4.48 0 13.632-4.672 13.632-13.952V400.512c-4.544-9.28-9.152-13.952-13.632-13.952z" fill="#FFFFFF"></path></symbol><symbol id="icon-i-tupian" viewBox="0 0 1024 1024"><path d="M35.328 0h953.344c19.52 0 35.328 15.808 35.328 35.328v953.344a35.328 35.328 0 0 1-35.328 35.328H35.328A35.328 35.328 0 0 1 0 988.672V35.328C0 15.808 15.808 0 35.328 0z" fill="#FF7743"></path><path d="M359.04 362.432a63.808 63.808 0 1 1 127.552 0 63.808 63.808 0 0 1-127.552 0z m265.6 29.824a15.36 15.36 0 0 1 27.072-0.32l159.36 290.176a17.664 17.664 0 0 1-15.488 26.176H248.64a17.664 17.664 0 0 1-14.848-27.072l130.176-206.848a15.36 15.36 0 0 1 21.696-4.48l130.88 90.688c7.68 5.248 18.112 2.624 22.464-5.504l85.568-162.816z" fill="#FFFFFF"></path></symbol><symbol id="icon-i-excle" viewBox="0 0 1024 1024"><path d="M35.328 0h953.344c19.52 0 35.328 15.808 35.328 35.328v953.344a35.328 35.328 0 0 1-35.328 35.328H35.328A35.328 35.328 0 0 1 0 988.672V35.328C0 15.808 15.808 0 35.328 0z" fill="#2FAA76"></path><path d="M667.072 336l79.424 3.84L554.24 512.768l192.256 170.24-85.504 4.096L510.72 551.936l-150.08 135.232-85.504-4.096 192.192-170.24L275.2 339.776l79.36-3.776 156.288 138.368 156.224-138.368z" fill="#FFFFFF"></path></symbol><symbol id="icon-i-pdf" viewBox="0 0 1024 1024"><path d="M35.328 0h953.344c19.52 0 35.328 15.808 35.328 35.328v953.344a35.328 35.328 0 0 1-35.328 35.328H35.328A35.328 35.328 0 0 1 0 988.672V35.328C0 15.808 15.808 0 35.328 0z" fill="#FF5A5A"></path><path d="M299.52 740.288c-10.304 0-17.728-4.16-22.144-12.288a39.68 39.68 0 0 1-2.496-28.032c2.816-12.352 9.856-23.552 22.08-35.072 15.232-14.528 37.632-29.056 63.04-41.024 12.672-5.952 27.776-12.16 44.224-18.112 18.88-28.544 45.824-73.536 65.152-123.008 2.176-5.632 4.288-11.328 6.208-16.96a263.872 263.872 0 0 1-12.608-35.008 274.88 274.88 0 0 1-9.984-48.384 168.512 168.512 0 0 1 0.768-40.448c1.792-13.056 4.8-22.272 9.536-29.056a40.32 40.32 0 0 1 29.184-16.768c4.032-0.64 8.832-1.536 15.232 0.384 4.224 1.344 8.128 3.2 11.84 5.568l0.128-0.256c18.88 8.704 17.088 24 14.72 45.056l-1.088 8.832a577.6 577.6 0 0 1-24.32 108.16c1.024 2.176 2.176 4.288 3.328 6.4 10.368 19.008 25.408 40.768 43.392 62.912 9.024 11.136 18.432 21.952 28.16 32.512a319.36 319.36 0 0 1 94.464 7.552c16.64 3.968 28.672 8.512 38.976 14.848 12.992 7.936 23.04 18.624 28.224 30.016 6.016 12.8 6.272 27.456 0.64 39.04-3.456 7.04-11.008 16.768-27.776 22.08a63.552 63.552 0 0 1-37.248 0.128 150.976 150.976 0 0 1-41.408-21.44 355.2 355.2 0 0 1-47.488-39.808c-7.168-6.848-14.08-13.888-20.928-20.992a546.496 546.496 0 0 0-39.744 5.952 674.56 674.56 0 0 0-107.008 27.52l-4.544 6.72c-24.384 35.008-48.128 62.656-68.736 79.616-15.744 12.992-30.208 20.416-44.416 22.592a43.136 43.136 0 0 1-7.424 0.768z m67.648-73.92c-30.336 14.72-47.616 28.864-55.296 36.224-10.688 10.176-13.312 16.832-14.4 21.504l-0.512 2.88c8.256-2.176 17.728-7.552 28.288-16.32 9.6-7.936 23.744-21.568 41.92-44.288z m258.112-60.992l1.664 1.664c17.216 16.64 31.488 28.672 46.464 38.976 13.568 9.344 25.536 15.616 34.56 18.304a34.24 34.24 0 0 0 20.16 0c3.52-1.024 8.128-3.136 9.792-6.528a18.752 18.752 0 0 0-0.832-14.848 44.544 44.544 0 0 0-17.664-17.856 104.192 104.192 0 0 0-31.744-11.776 307.776 307.776 0 0 0-62.4-7.936zM503.872 317.44l-2.56 0.832a10.304 10.304 0 0 0-3.008 0.64 10.24 10.24 0 0 0-4.8 3.328c-0.96 1.472-3.136 5.952-4.672 17.28a151.168 151.168 0 0 0-0.64 35.712c1.088 10.944 3.52 23.68 7.296 37.888 6.592-26.496 10.688-50.048 12.48-66.624l1.088-9.6c0.704-6.016 1.408-12.16 1.536-15.808a54.4 54.4 0 0 0-6.72-3.648z m-3.84 188.16a733.44 733.44 0 0 1-48.192 95.168l3.968-1.152c25.408-7.232 51.2-13.056 77.248-17.536 8-1.408 15.168-2.624 21.888-3.648a633.6 633.6 0 0 1-16.128-19.264 535.808 535.808 0 0 1-38.784-53.632z" fill="#FFFFFF"></path></symbol><symbol id="icon-i-ppt" viewBox="0 0 1024 1024"><path d="M35.328 0h953.344c19.52 0 35.328 15.808 35.328 35.328v953.344a35.328 35.328 0 0 1-35.328 35.328H35.328A35.328 35.328 0 0 1 0 988.672V35.328C0 15.808 15.808 0 35.328 0z" fill="#FF9643"></path><path d="M427.328 720V559.872h106.56c98.496 0 148.032-42.048 148.032-126.144 0-83.52-48.96-124.992-146.88-124.992H364.544v411.264h62.784z m102.528-213.696H427.328v-144h102.528c30.528 0 52.992 5.76 67.392 17.28 14.4 10.368 21.888 28.8 21.888 54.144 0 25.344-7.488 43.776-21.312 55.296-14.4 11.52-36.864 17.28-67.968 17.28z" fill="#FFFFFF"></path></symbol><symbol id="icon-number" viewBox="0 0 1024 1024"><path d="M544 704a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64h-64a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64h64z m0 64h-64v64h64v-64zM256 384a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H192a64 64 0 0 1-64-64V448a64 64 0 0 1 64-64h64z m288 0a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64h-64a64 64 0 0 1-64-64V448a64 64 0 0 1 64-64h64zM832 384a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64h-64a64 64 0 0 1-64-64V448a64 64 0 0 1 64-64h64zM256 448H192v64h64V448z m288 0h-64v64h64V448zM832 448h-64v64h64V448zM256 64a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H192a64 64 0 0 1-64-64V128a64 64 0 0 1 64-64h64z m288 0a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64h-64a64 64 0 0 1-64-64V128a64 64 0 0 1 64-64h64zM832 64a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64h-64a64 64 0 0 1-64-64V128a64 64 0 0 1 64-64h64zM256 128H192v64h64V128z m288 0h-64v64h64V128zM832 128h-64v64h64V128z"></path></symbol><symbol id="icon-phone1" viewBox="0 0 1024 1024"><path d="M896 128v768a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V128a128 128 0 0 1 128-128h512a128 128 0 0 1 128 128z m-128-64H256a64 64 0 0 0-64 64v768a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V128a64 64 0 0 0-64-64z"></path><path d="M448 832m32 0l64 0q32 0 32 32l0 0q0 32-32 32l-64 0q-32 0-32-32l0 0q0-32 32-32Z"></path></symbol><symbol id="icon-finance" viewBox="0 0 1024 1024"><path d="M512 64a448 448 0 1 1 0 896A448 448 0 0 1 512 64z m160 178.752L512 402.752l-160-160-45.248 45.248L466.688 448H256v64h224v64H256v64h224v187.84h64V640H768V576H544V512H768V448H557.248l160-160-45.248-45.248z"></path></symbol><symbol id="icon-replace" viewBox="0 0 1024 1024"><path d="M960 576v64l-18.56 0.064a448.192 448.192 0 0 1-872.896-64h64.768a384.128 384.128 0 0 0 740.8 64L768 640V576h192z m-289.792-237.696L768 496.384 512 736 256 496.448l97.792-158.08h316.416zM512 64a448.128 448.128 0 0 1 443.52 384h-64.832A384.128 384.128 0 0 0 149.824 384H256v64H64V384h18.56C137.6 198.912 309.056 64 512 64z"></path></symbol><symbol id="icon-building" viewBox="0 0 1024 1024"><path d="M576 128v768h64V384h256v512h64v64H64v-64h64V128h448zM512 576H192v64h320V576z m0-128H192v64h320V448z m0-128H192v64h320V320z"></path></symbol><symbol id="icon-aircraft" viewBox="0 0 1024 1024"><path d="M813.824 90.304c4.672-4.48 62.08-57.088 119.552 0.32 59.904 59.904 0 119.872 0 119.872l-359.68 359.68-167.936 167.936 17.92 161.92-59.904 59.904L273.92 750.08 64 660.096l59.904-59.904 161.92 17.92L453.76 450.304l-359.68-179.84 59.904-59.904 449.728 89.984z m-81.664 373.12l81.344 406.656-59.904 59.904-162.688-325.312 141.248-141.184z"></path></symbol><symbol id="icon-Icredit" viewBox="0 0 1024 1024"><path d="M512 0a384 384 0 0 1 192.064 716.608L704 960l-192-64.512L320 960v-243.392A384 384 0 0 1 512 0z m139.648 297.344L501.568 447.424 406.656 352.448l-45.312 45.248 140.224 140.224 195.328-195.264-45.248-45.312z"></path></symbol><symbol id="icon-Politicsandlaw" viewBox="0 0 1024 1024"><path d="M64 896h896v64H64zM384 733.696l55.424 32-32 55.424-387.968-224 32-55.424 55.424 32 256-443.392-55.424-32 32-55.424 55.424 32 332.544 192-32 55.424-55.424-32-96 166.272 387.968 224-64 110.848-387.968-224L384 733.696z"></path></symbol><symbol id="icon-traffic" viewBox="0 0 1024 1024"><path d="M768 64v64h128l-128 192v64h128l-128 192v64h128l-128 192v128H256v-128l-128-192h128V576L128 384h128V320L128 128h128V64h512z m-256 576a112 112 0 1 0 0 224A112 112 0 0 0 512 640z m0-256a112 112 0 1 0 0 224A112 112 0 0 0 512 384z m0-256a112 112 0 1 0 0 224A112 112 0 0 0 512 128z"></path></symbol><symbol id="icon-manufacture" viewBox="0 0 1024 1024"><path d="M942.016 202.816a233.152 233.152 0 0 1-48.64 250.24 220.544 220.544 0 0 1-268.864 36.8l-61.952 69.12 44.16 45.312 26.432-27.008a34.048 34.048 0 0 1 48.896 0l214.272 221.056a35.84 35.84 0 0 1 0 49.92l-97.792 99.968a34.048 34.048 0 0 1-48.896 0l-214.272-221.056a35.84 35.84 0 0 1 0-49.92l24.128-24.64-42.112-43.2-296.32 330.688a68.096 68.096 0 0 1-97.792 0l-24.448-24.96a71.68 71.68 0 0 1 0-99.904l337.536-288.768-224.192-229.632H141.44L59.52 162.24 125.44 94.72l134.784 84.224 0.896 70.848 226.752 232.576 65.92-56.448c-64.448-89.856-57.728-216.32 21.76-297.536a221.312 221.312 0 0 1 243.904-50.176l-145.28 146.368 122.24 124.8 145.6-146.56zM180.032 850.432a34.048 34.048 0 0 0-48.96 0 35.904 35.904 0 0 0 0 49.92 34.048 34.048 0 0 0 48.96 0 35.84 35.84 0 0 0 0-49.92z"></path></symbol><symbol id="icon-abroad" viewBox="0 0 1024 1024"><path d="M646.976 781.12c-11.072-26.496-47.36-71.872-108.16-134.848-16.192-16.832-15.168-29.76-9.344-68.16l0.64-4.288c3.968-26.304 10.56-41.856 100.096-55.872 45.44-7.168 57.408 10.816 73.984 35.648l5.568 8.192c15.744 22.784 27.392 27.968 45.056 35.84 7.872 3.584 17.728 8.064 30.912 15.488 31.36 17.664 31.36 37.568 31.36 81.344v4.992c0 69.888-26.112 107.712-36.224 119.872a414.464 414.464 0 0 1-133.12 76.16c24.384-45.12 5.696-98.752-0.768-114.368zM511.936 105.6c63.872 0 124.352 14.336 178.368 40.064-29.696 18.56-72.32 47.552-89.856 71.296-6.464 8.832-12.096 17.152-17.28 24.832-17.088 25.472-25.344 36.864-41.152 38.784a177.92 177.92 0 0 1-29.44-0.384c-29.824-1.92-70.656-4.48-83.712 30.528-8.32 22.208-9.728 82.56 17.088 113.792 4.288 4.992 5.12 14.272 2.176 24.64a48.192 48.192 0 0 1-13.952 23.68c-4.672-2.688-13.888-13.248-20.096-20.48-15.104-17.28-33.92-38.848-58.176-45.44-8.832-2.496-18.56-4.48-27.968-6.4-26.368-5.504-56.192-11.712-63.168-26.304-5.056-10.752-4.992-25.472-4.992-41.088 0-19.712 0-42.048-9.792-63.744a61.824 61.824 0 0 0-39.232-34.112A413.184 413.184 0 0 1 512 105.6z m-447.552 406.4C64.384 755.84 264.768 953.6 512 953.6s447.616-197.76 447.616-441.728c0-243.968-200.384-441.728-447.616-441.728s-447.616 197.76-447.616 441.728z"></path></symbol><symbol id="icon-publiceconomy" viewBox="0 0 1024 1024"><path d="M960 256v640H64V256h896z m-288 50.752L512 466.752l-160-160-45.248 45.248L466.688 512H256v64h224v64H256v64h224v123.84h64V704H768v-64H544V576H768V512H557.248l160-160-45.248-45.248zM896 128v64H128V128h768z"></path></symbol><symbol id="icon-Insurance" viewBox="0 0 1024 1024"><path d="M512 64l387.968 160v401.152a192 192 0 0 1-96 166.272L512 960l-291.968-168.576a192 192 0 0 1-96-166.272V224L512 64zM345.984 256A926.272 926.272 0 0 1 256 480l6.016 38.016c2.624 11.968 4.672 22.016 5.952 30.016 10.688-15.168 20.8-29.952 30.272-44.48l13.76-21.568v250.048h49.984V377.92c11.008-25.984 20.48-52.736 28.544-80.256l7.488-27.712L345.984 256zM704 276.032H424V449.92h112v56H384v48h120c-30.72 44.032-74.688 81.344-132.032 112 8 6.656 18.688 20.032 32 40a322.56 322.56 0 0 0 122.432-112l9.6-16v153.984h54.016V576c24 49.28 65.984 90.688 126.016 124.032 2.624-4.032 7.296-11.392 13.952-22.016 6.656-10.688 11.328-17.984 14.016-22.016-52.8-25.216-91.52-55.232-116.288-90.24l-7.68-11.776h119.936v-48H590.08v-56H704V276.032z m-49.984 48v80H476.032v-80h177.92z"></path></symbol><symbol id="icon-big-communication" viewBox="0 0 1024 1024"><path d="M716.8 153.6a51.2 51.2 0 0 1 51.2 51.2v640a51.2 51.2 0 0 1-51.2 51.2H307.2a51.2 51.2 0 0 1-51.2-51.2V204.8a51.2 51.2 0 0 1 51.2-51.2h409.6z m0 640H307.2a50.944 50.944 0 0 1-25.6-6.8608V844.8a25.6 25.6 0 0 0 22.6048 25.4208L307.2 870.4h409.6a25.6 25.6 0 0 0 25.4208-22.6048L742.4 844.8l0.0256-58.0608A50.944 50.944 0 0 1 716.8 793.6z m-153.6 25.6v25.6h-102.4v-25.6h102.4z m153.6-640H307.2a25.6 25.6 0 0 0-25.4208 22.6048L281.6 204.8v537.6a25.6 25.6 0 0 0 22.6048 25.4208L307.2 768h409.6a25.6 25.6 0 0 0 25.4208-22.6048L742.4 742.4V204.8a25.6 25.6 0 0 0-22.6048-25.4208L716.8 179.2z"></path></symbol><symbol id="icon-big-internet" viewBox="0 0 1024 1024"><path d="M512 179.2c132.1472 0 246.3232 77.0304 300.032 188.6208 75.1616-1.6896 120.96 10.0096 128.9472 39.7824 7.7312 28.8512-29.2352 64.6912-96.1792 101.2992V512c0 183.808-148.992 332.8-332.8 332.8-123.0848 0-230.5536-66.816-288.128-166.144-84.4032 3.7376-140.16-8.5248-148.3776-39.1424-8.192-30.6432 27.7248-64.5632 97.2032-101.888a12.7488 12.7488 0 0 1 7.3728-1.4336A332.2368 332.2368 0 0 1 179.2 512c0-183.808 148.992-332.8 332.8-332.8z m307.0208 343.1168l-4.3776 2.1504c-71.8848 35.1232-169.2928 70.144-279.4496 99.6864l-21.2224 5.5552c-97.7664 25.1904-188.16 41.2928-261.248 47.1296A306.9696 306.9696 0 0 0 512 819.2c166.2208 0 301.568-131.9936 307.0208-296.8832zM182.8352 561.28l1.9712-1.0752c-58.4192 31.36-88.1408 59.4176-84.5824 72.704 4.4288 16.512 46.0288 23.5008 110.592 20.8384a330.4448 330.4448 0 0 1-27.9808-92.4672zM512 204.8C342.3488 204.8 204.8 342.3488 204.8 512c0 50.4576 12.16 98.0992 33.7408 140.1088 77.568-5.8368 180.5312-23.3472 290.048-52.6848l20.4032-5.5808c107.8272-30.1568 203.136-66.6624 269.6704-99.9936a305.6128 305.6128 0 0 0-23.3472-100.8128 12.7232 12.7232 0 0 1-7.6288-16.64A307.1232 307.1232 0 0 0 512 204.8z m311.0144 188.5184l2.3808 6.4512c9.216 25.728 15.36 52.9152 17.9712 81.152 49.4592-27.264 76.9792-51.3792 72.8832-66.688-3.2768-12.2368-36.9152-21.0432-93.2352-20.9152z"></path></symbol><symbol id="icon-big-Centralenterprises" viewBox="0 0 1024 1024"><path d="M524.8 230.4v12.288H588.8v51.2h-64V332.8H716.8v128h179.2v306.688h76.8v25.6h-76.8V793.6H102.4v-0.512H25.6v-25.6h76.8V460.8h204.8v-128h192V230.4h25.6zM307.2 486.4H128v281.088h179.2V486.4z m384-128H332.8v409.088h358.4V358.4z m179.2 128h-153.6v281.088h153.6V486.4z m-358.4-64.512a51.2 51.2 0 1 1 0 102.4 51.2 51.2 0 0 1 0-102.4z"></path></symbol><symbol id="icon-big-finance" viewBox="0 0 1024 1024"><path d="M896 307.2v460.8H76.8V307.2h819.2z m-25.6 25.6H102.4v409.6h768V332.8z m89.6-89.6V716.8h-25.6V268.8H128v-25.6h832z m-473.6 153.6a140.8 140.8 0 1 1 0 281.6 140.8 140.8 0 0 1 0-281.6z m0 25.6a115.2 115.2 0 1 0 0 230.4 115.2 115.2 0 0 0 0-230.4z m-19.712 38.4l19.712 58.368 19.712-58.368h25.344l-26.624 66.304h38.144v12.8h-45.312v25.088h45.312v12.8h-45.312v40.192h-22.528v-40.192H430.08v-12.8h45.056v-25.088H430.08v-12.8h37.888L441.344 460.8h25.344z"></path></symbol><symbol id="icon-customerservice" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#B6B6B6" opacity=".2"></path><path d="M585.1136 449.41312c4.64896 0.02048 9.3184 0.3072 13.94688 0.83968C586.40384 391.72096 523.96032 348.16 452.48512 348.16 372.3264 348.16 307.2 402.69824 307.2 471.8592c0 39.936 21.77024 72.68352 58.1632 98.0992l-14.52032 43.7248 50.83136-25.4976c16.67072 4.17792 33.73056 6.61504 50.8928 7.2704 4.56704 0 9.3184 0 13.59872-0.57344a108.3392 108.3392 0 0 1-4.46464-30.43328c0-63.488 54.53824-115.03616 123.4944-115.03616h-0.08192z m-79.11424-42.33216a22.4256 22.4256 0 1 1 0 44.8512 22.4256 22.4256 0 0 1 0-44.8512z m-101.72416 45.40416a22.4256 22.4256 0 1 1 0-44.8512 22.4256 22.4256 0 0 1 0 44.8512z m312.4224 110.67392c0-58.08128-58.1632-105.472-123.392-105.472-69.16096 0-123.5968 47.39072-123.5968 105.472 0 58.0608 54.43584 105.43104 123.5968 105.43104a182.6816 182.6816 0 0 0 43.54048-7.24992l39.936 21.87264-10.89536-36.29056C695.02976 625.0496 716.8 596.00896 716.8 563.15904h-0.1024z m-161.3824-16.30208a16.01536 16.01536 0 1 1 0-32.01024 16.01536 16.01536 0 0 1 0 32.01024z m79.872 0.94208a16.01536 16.01536 0 1 1 0.36864 0h-0.36864z" fill="#1D273B"></path></symbol><symbol id="icon-top1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#B6B6B6" opacity=".2"></path><path d="M327.68 577.67936L516.23936 389.12l200.17152 200.17152-28.95872 28.95872-171.2128-171.19232-159.60064 159.58016z" fill="#1D273B"></path></symbol><symbol id="icon-top" viewBox="0 0 1024 1024"><path d="M0 0h1024L0 1024z" fill="#FA543C"></path><path d="M302.208 400.768V243.712h116.352V400h27.264V217.984H368.64c2.304-13.056 3.84-26.496 4.992-40.32h84.864v-26.88H264.192v26.88H345.6c-1.152 13.824-2.688 27.264-4.992 40.32h-65.28v182.784h26.88z m-130.56 80.64c21.888 0 33.024-11.52 33.024-34.176V177.664h46.08v-26.88H117.12v26.88h59.136v262.656c0 10.752-4.992 16.512-14.208 16.512-12.672 0-26.112-0.768-39.936-1.536l6.144 26.112h43.392z m78.336 3.456c42.624-13.056 73.344-30.72 92.16-52.992 19.2-23.808 29.184-56.448 30.336-97.152V266.368h-27.264v68.352c-1.152 32.64-9.216 59.136-24.576 79.488-16.128 19.584-44.544 35.328-85.632 47.232l14.976 23.424z m191.616 1.92l19.968-20.352c-18.816-21.504-42.24-42.624-69.888-64.128l-18.816 17.664c29.184 23.808 51.84 46.08 68.736 66.816z" fill="#FFFFFF"></path></symbol><symbol id="icon-questions" viewBox="0 0 1024 1024"><path d="M204.8 153.6h716.8v819.2H204.8z" fill="#FFFFFF" opacity=".2"></path><path d="M102.4 51.2h716.8v819.2H102.4z" fill="#FFFFFF"></path><path d="M460.8 409.6v51.2H256V409.6h204.8z m204.8-102.4v51.2H256V307.2h409.6z m0-102.4v51.2H256V204.8h409.6z" fill="#4771F8"></path></symbol><symbol id="icon-logo-file-white" viewBox="0 0 4525 1024"><path d="M2085.788903 767.933935l41.224258-40.431483c-91.961806-110.988387-173.617548-197.400774-244.967226-257.651613 4.756645-19.026581 8.720516-38.845935 12.684388-59.458065h210.877935v-55.494193h-202.157419c4.756645-43.602581 7.927742-90.376258 7.927742-139.528258V178.90271h-57.079742V227.261935a1297.507097 1297.507097 0 0 1-7.927742 127.636646h-179.166968v55.494193h170.446452c-26.954323 144.284903-90.376258 247.345548-188.680258 309.97471l34.882064 46.773677c84.034065-55.494194 144.284903-137.149935 182.338065-244.174451 73.728 69.764129 146.663226 151.419871 219.598451 244.967225zM1580.791742 354.898581l41.224258-42.017033c-38.053161-40.431484-84.034065-80.862968-138.735484-122.087225l-39.63871 37.260387c58.66529 45.188129 103.853419 87.205161 137.149936 126.843871z m-107.81729 553.356387c44.395355-74.520774 76.899097-110.988387 95.925677-110.988387 10.306065 0 21.404903 6.342194 32.503742 19.819354 25.368774 28.539871 53.908645 48.359226 87.205161 57.872517 33.296516 8.720516 76.106323 13.477161 130.014968 14.269935 53.115871 0.792774 102.267871 1.585548 147.456 1.585548h168.068129l14.269936-57.872516c-19.819355 1.585548-47.566452 2.378323-83.241291 3.171097-36.467613 0-72.142452 0.792774-107.024516 0.792774-65.007484 0-118.916129-0.792774-162.51871-1.585548-49.152-1.585548-87.205161-7.134968-112.573935-17.441032-22.990452-11.098839-44.395355-27.747097-65.007484-49.944775a134.110968 134.110968 0 0 0-19.819355-18.233806v-298.083097h-168.860903v55.494194h114.159484V746.529032c-33.296516 14.269935-70.556903 55.494194-113.36671 123.672774l42.809807 38.053162z m964.013419-394.801549v-134.771613c24.576 21.404903 53.908645 49.944774 87.997935 84.826839l28.539871-43.60258a1621.223226 1621.223226 0 0 0-116.537806-88.79071v-21.404903h114.952258V257.387355h-114.952258V178.90271h-53.908645v78.484645h-141.113807v52.323097h124.465549c-36.467613 59.458065-84.826839 110.988387-145.870452 155.383742l30.918194 45.980903c50.737548-42.809806 94.340129-95.925677 131.600516-160.140387v162.518709h53.908645z m329.794064 0V322.394839c28.539871 66.593032 76.106323 128.429419 141.113807 183.923613l36.467613-45.188129c-67.385806-44.395355-115.745032-95.132903-145.870452-151.419871h112.573936V257.387355H2766.781935V178.90271h-53.908645v78.484645h-126.051096v52.323097h95.132903a496.805161 496.805161 0 0 1-129.222194 153.005419l30.918194 45.188129c50.737548-47.566452 94.340129-109.402839 129.222193-184.716387v190.265806h53.908645zM2260.199226 905.083871c307.596387-26.954323 493.898323-122.087226 558.905806-285.39871v-45.188129h-304.42529a441.178839 441.178839 0 0 0 50.737548-58.66529L2521.021935 488.877419c-51.530323 68.971355-132.39329 124.465548-243.381677 165.689807l26.161548 45.980903c53.908645-20.612129 102.267871-45.188129 145.077678-73.728h308.389161c-32.503742 58.66529-86.412387 106.231742-161.725935 142.699355-38.053161-34.882065-84.826839-69.764129-140.321033-106.231742L2417.96129 698.962581c48.359226 31.710968 89.583484 63.421935 123.672775 93.547354-82.448516 30.918194-185.509161 50.737548-309.181936 60.250839l27.747097 52.323097z m1441.263484 3.171097l30.918193-47.566452c-126.843871-46.773677-232.282839-105.438968-316.316903-176.788645 77.691871-84.034065 136.357161-189.473032 175.203097-314.731355h123.672774V312.088774h-302.839742c-25.368774-54.701419-52.323097-101.475097-82.448516-139.528258l-57.079742 20.612129a609.213935 609.213935 0 0 1 79.277419 118.916129h-328.208516v57.079742h122.087226c35.674839 122.087226 99.096774 228.318968 191.058581 318.695226-85.619613 77.691871-195.022452 133.978839-328.208516 169.653677l30.125419 49.944775c134.771613-38.845935 247.345548-99.889548 337.721806-183.130839 85.619613 73.728 193.436903 134.771613 325.03742 183.923613z m-325.03742-260.029936c-82.448516-79.277419-140.321032-172.032-174.410322-279.056516h329.794064c-33.296516 109.402839-84.826839 202.157419-155.383742 279.056516zM4491.065806 905.083871V453.202581h-163.311483V178.109935h-57.872517v275.092646h-176.788645v55.494193h340.892904v125.258323h-321.073549v53.908645h321.073549v128.429419H4078.823226v55.494194h355.162839V905.083871h57.079741z m-514.510451-3.171097v-404.314839c22.197677 29.332645 47.566452 68.178581 77.691871 116.537807l32.503742-47.566452c-37.260387-49.152-73.728-93.547355-110.195613-132.39329v-45.980903h94.340129v-54.70142h-94.340129v-154.590967h-57.872516v154.590967h-107.817291v54.70142h107.024517c-24.576 97.511226-65.800258 184.716387-124.465549 261.615484l24.576 61.043613c41.224258-61.836387 74.520774-130.014968 100.682323-206.121291v397.179871h57.872516z m451.088516-489.141677a952.848516 952.848516 0 0 0 85.619613-170.446452l-50.737549-23.783226c-20.612129 55.494194-49.152 111.781161-84.034064 168.860904l49.152 25.368774z m-263.201032-1.585549l49.152-24.576c-25.368774-58.66529-52.323097-113.36671-80.862968-162.518709l-49.944774 24.576a1240.460387 1240.460387 0 0 1 81.655742 162.518709z" fill="#FFFFFF"></path><path d="M16.516129 22.23071L680.827871 222.967742v581.698064L16.516129 1005.402839V22.23071z m957.935484 0.033032v983.106064l-330.388645-100.153806 139.230967-42.314323V164.764903l-139.230967-42.380387L974.451613 22.263742zM208.433548 270.336v486.994581l280.476904-84.760775V355.096774L208.433548 270.369032z" fill="#4771F8"></path></symbol><symbol id="icon-logo-file-black" viewBox="0 0 4525 1024"><path d="M2085.788903 767.933935l41.224258-40.431483c-91.961806-110.988387-173.617548-197.400774-244.967226-257.651613 4.756645-19.026581 8.720516-38.845935 12.684388-59.458065h210.877935v-55.494193h-202.157419c4.756645-43.602581 7.927742-90.376258 7.927742-139.528258V178.90271h-57.079742V227.261935a1297.507097 1297.507097 0 0 1-7.927742 127.636646h-179.166968v55.494193h170.446452c-26.954323 144.284903-90.376258 247.345548-188.680258 309.97471l34.882064 46.773677c84.034065-55.494194 144.284903-137.149935 182.338065-244.174451 73.728 69.764129 146.663226 151.419871 219.598451 244.967225zM1580.791742 354.898581l41.224258-42.017033c-38.053161-40.431484-84.034065-80.862968-138.735484-122.087225l-39.63871 37.260387c58.66529 45.188129 103.853419 87.205161 137.149936 126.843871z m-107.81729 553.356387c44.395355-74.520774 76.899097-110.988387 95.925677-110.988387 10.306065 0 21.404903 6.342194 32.503742 19.819354 25.368774 28.539871 53.908645 48.359226 87.205161 57.872517 33.296516 8.720516 76.106323 13.477161 130.014968 14.269935 53.115871 0.792774 102.267871 1.585548 147.456 1.585548h168.068129l14.269936-57.872516c-19.819355 1.585548-47.566452 2.378323-83.241291 3.171097-36.467613 0-72.142452 0.792774-107.024516 0.792774-65.007484 0-118.916129-0.792774-162.51871-1.585548-49.152-1.585548-87.205161-7.134968-112.573935-17.441032-22.990452-11.098839-44.395355-27.747097-65.007484-49.944775a134.110968 134.110968 0 0 0-19.819355-18.233806v-298.083097h-168.860903v55.494194h114.159484V746.529032c-33.296516 14.269935-70.556903 55.494194-113.36671 123.672774l42.809807 38.053162z m964.013419-394.801549v-134.771613c24.576 21.404903 53.908645 49.944774 87.997935 84.826839l28.539871-43.60258a1621.223226 1621.223226 0 0 0-116.537806-88.79071v-21.404903h114.952258V257.387355h-114.952258V178.90271h-53.908645v78.484645h-141.113807v52.323097h124.465549c-36.467613 59.458065-84.826839 110.988387-145.870452 155.383742l30.918194 45.980903c50.737548-42.809806 94.340129-95.925677 131.600516-160.140387v162.518709h53.908645z m329.794064 0V322.394839c28.539871 66.593032 76.106323 128.429419 141.113807 183.923613l36.467613-45.188129c-67.385806-44.395355-115.745032-95.132903-145.870452-151.419871h112.573936V257.387355H2766.781935V178.90271h-53.908645v78.484645h-126.051096v52.323097h95.132903a496.805161 496.805161 0 0 1-129.222194 153.005419l30.918194 45.188129c50.737548-47.566452 94.340129-109.402839 129.222193-184.716387v190.265806h53.908645zM2260.199226 905.083871c307.596387-26.954323 493.898323-122.087226 558.905806-285.39871v-45.188129h-304.42529a441.178839 441.178839 0 0 0 50.737548-58.66529L2521.021935 488.877419c-51.530323 68.971355-132.39329 124.465548-243.381677 165.689807l26.161548 45.980903c53.908645-20.612129 102.267871-45.188129 145.077678-73.728h308.389161c-32.503742 58.66529-86.412387 106.231742-161.725935 142.699355-38.053161-34.882065-84.826839-69.764129-140.321033-106.231742L2417.96129 698.962581c48.359226 31.710968 89.583484 63.421935 123.672775 93.547354-82.448516 30.918194-185.509161 50.737548-309.181936 60.250839l27.747097 52.323097z m1441.263484 3.171097l30.918193-47.566452c-126.843871-46.773677-232.282839-105.438968-316.316903-176.788645 77.691871-84.034065 136.357161-189.473032 175.203097-314.731355h123.672774V312.088774h-302.839742c-25.368774-54.701419-52.323097-101.475097-82.448516-139.528258l-57.079742 20.612129a609.213935 609.213935 0 0 1 79.277419 118.916129h-328.208516v57.079742h122.087226c35.674839 122.087226 99.096774 228.318968 191.058581 318.695226-85.619613 77.691871-195.022452 133.978839-328.208516 169.653677l30.125419 49.944775c134.771613-38.845935 247.345548-99.889548 337.721806-183.130839 85.619613 73.728 193.436903 134.771613 325.03742 183.923613z m-325.03742-260.029936c-82.448516-79.277419-140.321032-172.032-174.410322-279.056516h329.794064c-33.296516 109.402839-84.826839 202.157419-155.383742 279.056516zM4491.065806 905.083871V453.202581h-163.311483V178.109935h-57.872517v275.092646h-176.788645v55.494193h340.892904v125.258323h-321.073549v53.908645h321.073549v128.429419H4078.823226v55.494194h355.162839V905.083871h57.079741z m-514.510451-3.171097v-404.314839c22.197677 29.332645 47.566452 68.178581 77.691871 116.537807l32.503742-47.566452c-37.260387-49.152-73.728-93.547355-110.195613-132.39329v-45.980903h94.340129v-54.70142h-94.340129v-154.590967h-57.872516v154.590967h-107.817291v54.70142h107.024517c-24.576 97.511226-65.800258 184.716387-124.465549 261.615484l24.576 61.043613c41.224258-61.836387 74.520774-130.014968 100.682323-206.121291v397.179871h57.872516z m451.088516-489.141677a952.848516 952.848516 0 0 0 85.619613-170.446452l-50.737549-23.783226c-20.612129 55.494194-49.152 111.781161-84.034064 168.860904l49.152 25.368774z m-263.201032-1.585549l49.152-24.576c-25.368774-58.66529-52.323097-113.36671-80.862968-162.518709l-49.944774 24.576a1240.460387 1240.460387 0 0 1 81.655742 162.518709z" fill="#222222"></path><path d="M16.516129 22.23071L680.827871 222.967742v581.698064L16.516129 1005.402839V22.23071z m957.935484 0.033032v983.106064l-330.388645-100.153806 139.230967-42.314323V164.764903l-139.230967-42.380387L974.451613 22.263742zM208.433548 270.336v486.994581l280.476904-84.760775V355.096774L208.433548 270.369032z" fill="#4771F8"></path></symbol><symbol id="icon-logo-community-white" viewBox="0 0 4525 1024"><path d="M2085.788903 767.933935l41.224258-40.431483c-91.961806-110.988387-173.617548-197.400774-244.967226-257.651613 4.756645-19.026581 8.720516-38.845935 12.684388-59.458065h210.877935v-55.494193h-202.157419c4.756645-43.602581 7.927742-90.376258 7.927742-139.528258V178.90271h-57.079742V227.261935a1297.507097 1297.507097 0 0 1-7.927742 127.636646h-179.166968v55.494193h170.446452c-26.954323 144.284903-90.376258 247.345548-188.680258 309.97471l34.882064 46.773677c84.034065-55.494194 144.284903-137.149935 182.338065-244.174451 73.728 69.764129 146.663226 151.419871 219.598451 244.967225zM1580.791742 354.898581l41.224258-42.017033c-38.053161-40.431484-84.034065-80.862968-138.735484-122.087225l-39.63871 37.260387c58.66529 45.188129 103.853419 87.205161 137.149936 126.843871z m-107.81729 553.356387c44.395355-74.520774 76.899097-110.988387 95.925677-110.988387 10.306065 0 21.404903 6.342194 32.503742 19.819354 25.368774 28.539871 53.908645 48.359226 87.205161 57.872517 33.296516 8.720516 76.106323 13.477161 130.014968 14.269935 53.115871 0.792774 102.267871 1.585548 147.456 1.585548h168.068129l14.269936-57.872516c-19.819355 1.585548-47.566452 2.378323-83.241291 3.171097-36.467613 0-72.142452 0.792774-107.024516 0.792774-65.007484 0-118.916129-0.792774-162.51871-1.585548-49.152-1.585548-87.205161-7.134968-112.573935-17.441032-22.990452-11.098839-44.395355-27.747097-65.007484-49.944775a134.110968 134.110968 0 0 0-19.819355-18.233806v-298.083097h-168.860903v55.494194h114.159484V746.529032c-33.296516 14.269935-70.556903 55.494194-113.36671 123.672774l42.809807 38.053162z m964.013419-394.801549v-134.771613c24.576 21.404903 53.908645 49.944774 87.997935 84.826839l28.539871-43.60258a1621.223226 1621.223226 0 0 0-116.537806-88.79071v-21.404903h114.952258V257.387355h-114.952258V178.90271h-53.908645v78.484645h-141.113807v52.323097h124.465549c-36.467613 59.458065-84.826839 110.988387-145.870452 155.383742l30.918194 45.980903c50.737548-42.809806 94.340129-95.925677 131.600516-160.140387v162.518709h53.908645z m329.794064 0V322.394839c28.539871 66.593032 76.106323 128.429419 141.113807 183.923613l36.467613-45.188129c-67.385806-44.395355-115.745032-95.132903-145.870452-151.419871h112.573936V257.387355H2766.781935V178.90271h-53.908645v78.484645h-126.051096v52.323097h95.132903a496.805161 496.805161 0 0 1-129.222194 153.005419l30.918194 45.188129c50.737548-47.566452 94.340129-109.402839 129.222193-184.716387v190.265806h53.908645zM2260.199226 905.083871c307.596387-26.954323 493.898323-122.087226 558.905806-285.39871v-45.188129h-304.42529a441.178839 441.178839 0 0 0 50.737548-58.66529L2521.021935 488.877419c-51.530323 68.971355-132.39329 124.465548-243.381677 165.689807l26.161548 45.980903c53.908645-20.612129 102.267871-45.188129 145.077678-73.728h308.389161c-32.503742 58.66529-86.412387 106.231742-161.725935 142.699355-38.053161-34.882065-84.826839-69.764129-140.321033-106.231742L2417.96129 698.962581c48.359226 31.710968 89.583484 63.421935 123.672775 93.547354-82.448516 30.918194-185.509161 50.737548-309.181936 60.250839l27.747097 52.323097z m925.167484-1.585548V568.154839c31.710968 22.197677 63.421935 49.944774 95.925677 83.24129l31.710968-49.152a728.493419 728.493419 0 0 0-127.636645-92.754581c44.395355-57.079742 77.691871-114.159484 98.304-171.239225V289.891097h-99.889549l16.648258-6.342194c-10.306065-33.296516-24.576-68.971355-42.017032-108.610064l-54.701419 15.062709c16.648258 31.710968 30.918194 65.007484 43.60258 99.889549h-122.087225v54.701419h200.571871c-36.467613 86.412387-110.195613 175.203097-219.598452 265.579355l17.441032 60.250839a1609.166452 1609.166452 0 0 0 105.438968-96.718452v329.794065h56.286968z m544.635871-25.368775V821.842581h-199.779097V474.607484h180.752516v-56.286968h-180.752516V182.073806h-58.66529v236.24671h-176.788646v56.286968h176.788646V821.842581h-204.535742v56.286967h462.980129z m781.675354-6.342193v-54.70142h-597.751741V265.315097h574.76129V210.613677h-629.46271v661.173678h652.453161z m-516.096-111.781161c91.169032-39.63871 171.239226-96.718452 241.003355-171.239226a1876.430452 1876.430452 0 0 1 162.51871 168.860903l44.395355-44.395355a2824.885677 2824.885677 0 0 0-168.860903-168.860903c47.566452-60.250839 88.79071-130.807742 124.465548-211.67071l-51.530323-27.747097c-33.296516 75.313548-72.142452 141.906581-117.33058 199.779097-62.629161-55.494194-130.807742-110.988387-203.742968-166.48258l-41.224258 39.638709a3583.207226 3583.207226 0 0 1 207.706839 170.446452 650.206968 650.206968 0 0 1-230.697291 160.140387l33.296516 51.530323z" fill="#FFFFFF"></path><path d="M16.516129 22.23071L680.827871 222.967742v581.698064L16.516129 1005.402839V22.23071z m957.935484 0.033032v983.106064l-330.388645-100.153806 139.230967-42.314323V164.764903l-139.230967-42.380387L974.451613 22.263742zM208.433548 270.336v486.994581l280.476904-84.760775V355.096774L208.433548 270.369032z" fill="#4771F8"></path></symbol><symbol id="icon-logo-community-black" viewBox="0 0 4525 1024"><path d="M2085.788903 767.933935l41.224258-40.431483c-91.961806-110.988387-173.617548-197.400774-244.967226-257.651613 4.756645-19.026581 8.720516-38.845935 12.684388-59.458065h210.877935v-55.494193h-202.157419c4.756645-43.602581 7.927742-90.376258 7.927742-139.528258V178.90271h-57.079742V227.261935a1297.507097 1297.507097 0 0 1-7.927742 127.636646h-179.166968v55.494193h170.446452c-26.954323 144.284903-90.376258 247.345548-188.680258 309.97471l34.882064 46.773677c84.034065-55.494194 144.284903-137.149935 182.338065-244.174451 73.728 69.764129 146.663226 151.419871 219.598451 244.967225zM1580.791742 354.898581l41.224258-42.017033c-38.053161-40.431484-84.034065-80.862968-138.735484-122.087225l-39.63871 37.260387c58.66529 45.188129 103.853419 87.205161 137.149936 126.843871z m-107.81729 553.356387c44.395355-74.520774 76.899097-110.988387 95.925677-110.988387 10.306065 0 21.404903 6.342194 32.503742 19.819354 25.368774 28.539871 53.908645 48.359226 87.205161 57.872517 33.296516 8.720516 76.106323 13.477161 130.014968 14.269935 53.115871 0.792774 102.267871 1.585548 147.456 1.585548h168.068129l14.269936-57.872516c-19.819355 1.585548-47.566452 2.378323-83.241291 3.171097-36.467613 0-72.142452 0.792774-107.024516 0.792774-65.007484 0-118.916129-0.792774-162.51871-1.585548-49.152-1.585548-87.205161-7.134968-112.573935-17.441032-22.990452-11.098839-44.395355-27.747097-65.007484-49.944775a134.110968 134.110968 0 0 0-19.819355-18.233806v-298.083097h-168.860903v55.494194h114.159484V746.529032c-33.296516 14.269935-70.556903 55.494194-113.36671 123.672774l42.809807 38.053162z m964.013419-394.801549v-134.771613c24.576 21.404903 53.908645 49.944774 87.997935 84.826839l28.539871-43.60258a1621.223226 1621.223226 0 0 0-116.537806-88.79071v-21.404903h114.952258V257.387355h-114.952258V178.90271h-53.908645v78.484645h-141.113807v52.323097h124.465549c-36.467613 59.458065-84.826839 110.988387-145.870452 155.383742l30.918194 45.980903c50.737548-42.809806 94.340129-95.925677 131.600516-160.140387v162.518709h53.908645z m329.794064 0V322.394839c28.539871 66.593032 76.106323 128.429419 141.113807 183.923613l36.467613-45.188129c-67.385806-44.395355-115.745032-95.132903-145.870452-151.419871h112.573936V257.387355H2766.781935V178.90271h-53.908645v78.484645h-126.051096v52.323097h95.132903a496.805161 496.805161 0 0 1-129.222194 153.005419l30.918194 45.188129c50.737548-47.566452 94.340129-109.402839 129.222193-184.716387v190.265806h53.908645zM2260.199226 905.083871c307.596387-26.954323 493.898323-122.087226 558.905806-285.39871v-45.188129h-304.42529a441.178839 441.178839 0 0 0 50.737548-58.66529L2521.021935 488.877419c-51.530323 68.971355-132.39329 124.465548-243.381677 165.689807l26.161548 45.980903c53.908645-20.612129 102.267871-45.188129 145.077678-73.728h308.389161c-32.503742 58.66529-86.412387 106.231742-161.725935 142.699355-38.053161-34.882065-84.826839-69.764129-140.321033-106.231742L2417.96129 698.962581c48.359226 31.710968 89.583484 63.421935 123.672775 93.547354-82.448516 30.918194-185.509161 50.737548-309.181936 60.250839l27.747097 52.323097z m925.167484-1.585548V568.154839c31.710968 22.197677 63.421935 49.944774 95.925677 83.24129l31.710968-49.152a728.493419 728.493419 0 0 0-127.636645-92.754581c44.395355-57.079742 77.691871-114.159484 98.304-171.239225V289.891097h-99.889549l16.648258-6.342194c-10.306065-33.296516-24.576-68.971355-42.017032-108.610064l-54.701419 15.062709c16.648258 31.710968 30.918194 65.007484 43.60258 99.889549h-122.087225v54.701419h200.571871c-36.467613 86.412387-110.195613 175.203097-219.598452 265.579355l17.441032 60.250839a1609.166452 1609.166452 0 0 0 105.438968-96.718452v329.794065h56.286968z m544.635871-25.368775V821.842581h-199.779097V474.607484h180.752516v-56.286968h-180.752516V182.073806h-58.66529v236.24671h-176.788646v56.286968h176.788646V821.842581h-204.535742v56.286967h462.980129z m781.675354-6.342193v-54.70142h-597.751741V265.315097h574.76129V210.613677h-629.46271v661.173678h652.453161z m-516.096-111.781161c91.169032-39.63871 171.239226-96.718452 241.003355-171.239226a1876.430452 1876.430452 0 0 1 162.51871 168.860903l44.395355-44.395355a2824.885677 2824.885677 0 0 0-168.860903-168.860903c47.566452-60.250839 88.79071-130.807742 124.465548-211.67071l-51.530323-27.747097c-33.296516 75.313548-72.142452 141.906581-117.33058 199.779097-62.629161-55.494194-130.807742-110.988387-203.742968-166.48258l-41.224258 39.638709a3583.207226 3583.207226 0 0 1 207.706839 170.446452 650.206968 650.206968 0 0 1-230.697291 160.140387l33.296516 51.530323z" fill="#222222"></path><path d="M16.516129 22.23071L680.827871 222.967742v581.698064L16.516129 1005.402839V22.23071z m957.935484 0.033032v983.106064l-330.388645-100.153806 139.230967-42.314323V164.764903l-139.230967-42.380387L974.451613 22.263742zM208.433548 270.336v486.994581l280.476904-84.760775V355.096774L208.433548 270.369032z" fill="#4771F8"></path></symbol><symbol id="icon-logo-black" viewBox="0 0 6516 1024"><path d="M1959.377455 721.392485l38.725818-37.981091c-86.388364-104.261818-163.095273-185.437091-230.120728-242.036364 4.468364-17.873455 8.192-36.491636 11.915637-55.854545h198.097454v-52.130909h-189.905454c4.468364-40.96 7.447273-84.898909 7.447273-131.072V168.060121h-53.620364V213.488485a1218.870303 1218.870303 0 0 1-7.447273 119.901091h-168.308363v52.130909h160.116363c-25.320727 135.540364-84.898909 232.354909-177.245091 291.188363l32.768 43.93891c78.941091-52.130909 135.540364-128.837818 171.287273-229.376 69.259636 65.536 137.774545 142.242909 206.289455 230.120727zM1484.986182 333.389576l38.725818-39.470546c-35.746909-37.981091-78.941091-75.962182-130.327273-114.688l-37.236363 35.002182c55.109818 42.449455 97.559273 81.92 128.837818 119.156364z m-101.282909 519.819636c41.704727-70.004364 72.238545-104.261818 90.112-104.261818 9.681455 0 20.107636 5.957818 30.533818 18.618182 23.831273 26.810182 50.641455 45.428364 81.92 54.365091 31.278545 8.192 71.493818 12.660364 122.135273 13.405091 49.896727 0.744727 96.069818 1.489455 138.519272 1.489454h157.882182l13.405091-54.365091c-18.618182 1.489455-44.683636 2.234182-78.196364 2.978909-34.257455 0-67.770182 0.744727-100.538181 0.744728-61.067636 0-111.709091-0.744727-152.669091-1.489455-46.173091-1.489455-81.92-6.702545-105.751273-16.384-21.597091-10.426182-41.704727-26.065455-61.067636-46.917818a125.98303 125.98303 0 0 0-18.618182-17.128727v-280.017455h-158.626909v52.130909h107.240727V701.284848c-31.278545 13.405091-66.280727 52.130909-106.496 116.177455l40.215273 35.746909z m905.588363-370.874182v-126.603636c23.086545 20.107636 50.641455 46.917818 82.664728 79.685818l26.810181-40.96a1522.967273 1522.967273 0 0 0-109.474909-83.409454v-20.107637h107.985455V241.788121h-107.985455V168.060121h-50.641454v73.728h-132.561455v49.152h116.922182c-34.257455 55.854545-79.685818 104.261818-137.029818 145.966546l29.044364 43.194181c47.662545-40.215273 88.622545-90.112 123.624727-150.434909v152.669091h50.641454z m309.806546 0V302.855758c26.810182 62.557091 71.493818 120.645818 132.561454 172.776727l34.257455-42.449455c-63.301818-41.704727-108.730182-89.367273-137.029818-142.242909h105.751272V241.788121H2599.098182V168.060121h-50.641455v73.728h-118.411636v49.152h89.367273a466.695758 466.695758 0 0 1-121.390546 143.732364l29.044364 42.449454c47.662545-44.683636 88.622545-102.772364 121.390545-173.521454v178.734545h50.641455zM2123.217455 850.230303c288.954182-25.320727 463.965091-114.688 525.032727-268.101818v-42.449455h-285.975273a414.440727 414.440727 0 0 0 47.662546-55.109818L2368.232727 459.248485c-48.407273 64.791273-124.369455 116.922182-228.631272 155.648l24.576 43.194182c50.641455-19.362909 96.069818-42.449455 136.28509-69.259637h289.69891c-30.533818 55.109818-81.175273 99.793455-151.924364 134.050909-35.746909-32.768-79.685818-65.536-131.816727-99.793454L2271.418182 656.601212c45.428364 29.789091 84.154182 59.578182 116.177454 87.877818-77.451636 29.044364-174.266182 47.662545-290.443636 56.599273l26.065455 49.152z m1310.72-587.589818v-52.130909H2903.691636v52.130909h530.245819z m-5.213091 592.802909l47.662545-33.512727c-37.236364-75.962182-90.112-166.074182-158.626909-268.846546l-43.194182 26.810182a2789.624242 2789.624242 0 0 1 89.367273 147.456c-133.306182 17.873455-266.612364 30.533818-400.663273 37.981091 50.641455-55.109818 110.964364-152.669091 179.479273-293.422546h357.469091V418.288485H2832.197818v53.620363h250.973091c-78.196364 158.626909-141.498182 255.441455-189.160727 291.188364-2.978909 1.489455-6.702545 3.723636-12.660364 5.213091l14.149818 54.365091c178.734545-11.915636 343.319273-26.810182 494.498909-46.173091a1536 1536 0 0 1 38.725819 78.941091z m752.174545-124.369455V515.10303h-143.732364v-90.856727h195.863273v-49.152h-195.863273V262.640485c63.301818-10.426182 119.156364-26.065455 167.563637-46.917818l-25.320727-43.194182c-102.027636 38.725818-230.865455 58.833455-385.768728 58.833454l16.384 48.407273c62.557091 0 121.390545-3.723636 175.755637-9.681454v105.006545h-193.629091v49.152h193.629091V515.10303h-142.987637v215.970909h338.106182z m-460.241454-401.408l36.491636-36.491636c-34.257455-38.725818-76.706909-78.196364-126.603636-117.666909l-37.236364 35.002182c54.365091 42.449455 96.814545 81.92 127.348364 119.156363z m-103.517091 522.798546c41.704727-69.259636 71.493818-103.517091 90.112-103.517091 8.936727 0 18.618182 5.957818 29.044363 18.618182 23.086545 26.065455 49.152 43.194182 78.196364 52.130909 29.789091 8.192 69.259636 12.660364 116.922182 13.405091 47.662545 0.744727 92.346182 1.489455 132.561454 1.489454h174.266182l11.915636-49.896727c-19.362909 1.489455-47.662545 2.234182-84.154181 2.978909-37.236364 0-72.983273 0.744727-108.730182 0.744727-58.088727 0-107.240727-0.744727-146.711273-1.489454-44.683636-1.489455-78.196364-6.702545-101.282909-17.128727-20.852364-10.426182-40.215273-26.065455-58.088727-48.407273a126.665697 126.665697 0 0 0-17.873455-17.128727V425.735758h-155.648v49.152h105.751273V701.284848c-31.278545 13.405091-66.280727 51.386182-106.496 114.688l40.215273 36.491637z m513.117091-168.308364h-237.568v-122.135273h237.568v122.135273z m256.186181 163.095273v-40.215273h212.247273v40.215273h47.662546V335.623758H4561.454545V249.235394h96.814546V198.593939H4319.418182v50.641455h100.538182v86.388364h-81.175273v511.627636h47.662545z m510.138182-11.915636c35.746909 0 58.833455-11.915636 70.749091-34.257455 11.915636-23.086545 20.107636-72.983273 25.320727-150.434909l-52.875636-17.128727c-2.234182 59.578182-5.957818 99.793455-11.915636 119.901091-5.957818 20.852364-19.362909 31.278545-40.215273 31.278545h-116.922182c-15.639273-0.744727-23.086545-14.149818-23.086545-39.470545v-244.270546h203.310545v-301.614545h-268.101818v50.641454h215.970909v198.842182h-203.310545V764.586667c0 46.917818 17.873455 70.749091 53.620363 70.749091h147.456z m-381.300363-499.712h-49.152V249.235394h49.152v86.388364z m83.409454 299.380363h-212.247273V384.775758h43.938909v48.407272c-0.744727 68.514909-14.149818 117.666909-40.96 148.945455l28.299637 26.065454c31.278545-37.236364 47.662545-95.325091 49.152-175.010909V384.775758h46.917818v134.050909c0 34.257455 15.639273 51.386182 46.917818 51.386181h37.981091v64.791273z m0-106.496h-29.044364c-12.660364 0-18.618182-6.702545-18.618181-19.362909V384.775758h47.662545v143.732363z m0 227.886546h-212.247273v-72.238546h212.247273v72.238546z m828.136727 99.048727v-253.952h213.736728v46.917818h53.620363V298.387394h-267.357091v-134.050909h-55.109818v134.050909h-266.612363v350.021818h53.620363v-46.917818h212.992v253.952h55.109818z m-55.109818-306.082909h-212.992v-198.842182h212.992v198.842182z m268.846546 0h-213.736728v-198.842182h213.736728v198.842182z m569.716363-158.626909l44.683637-30.533818c-36.491636-54.365091-89.367273-117.666909-157.882182-189.905455l-44.683637 27.554909c67.025455 70.004364 119.156364 134.795636 157.882182 192.884364z m29.044364 434.920727c29.789091 0 52.130909-9.681455 66.280727-28.299636 15.639273-22.341818 26.065455-84.154182 32.023273-186.181819l-50.641455-17.128727c-3.723636 87.133091-10.426182 139.264-19.362909 157.137455-7.447273 14.149818-20.107636 21.597091-37.981091 21.597091h-140.008727c-26.810182 0-40.215273-11.170909-40.215273-33.512728V322.963394h-53.620363v427.473454c0 49.896727 25.320727 75.217455 77.451636 75.217455h166.074182z m201.076364-114.688l49.152-22.341818c-35.746909-109.474909-76.706909-212.247273-124.369455-309.061818l-52.130909 17.128727c46.173091 90.856727 88.622545 195.863273 127.348364 314.274909z m-592.80291 32.768c38.725818-92.346182 68.514909-202.565818 89.367273-330.658909l-51.386182-10.426182c-17.873455 113.198545-45.428364 217.460364-84.154181 312.040727l46.17309 29.044364z" fill="#222222"></path><path d="M15.515152 20.883394L639.565576 209.454545v546.443637L15.515152 944.469333V20.883394z m899.878787 0.03103v923.523879l-310.365091-94.083879 130.792728-39.749818V154.779152l-130.792728-39.811879L915.393939 20.914424zM195.801212 253.952v457.479758l263.478303-79.623758V333.575758L195.801212 253.98303z" fill="#4771F8"></path></symbol><symbol id="icon-logo-white" viewBox="0 0 6516 1024"><path d="M1959.377455 721.392485l38.725818-37.981091c-86.388364-104.261818-163.095273-185.437091-230.120728-242.036364 4.468364-17.873455 8.192-36.491636 11.915637-55.854545h198.097454v-52.130909h-189.905454c4.468364-40.96 7.447273-84.898909 7.447273-131.072V168.060121h-53.620364V213.488485a1218.870303 1218.870303 0 0 1-7.447273 119.901091h-168.308363v52.130909h160.116363c-25.320727 135.540364-84.898909 232.354909-177.245091 291.188363l32.768 43.93891c78.941091-52.130909 135.540364-128.837818 171.287273-229.376 69.259636 65.536 137.774545 142.242909 206.289455 230.120727zM1484.986182 333.389576l38.725818-39.470546c-35.746909-37.981091-78.941091-75.962182-130.327273-114.688l-37.236363 35.002182c55.109818 42.449455 97.559273 81.92 128.837818 119.156364z m-101.282909 519.819636c41.704727-70.004364 72.238545-104.261818 90.112-104.261818 9.681455 0 20.107636 5.957818 30.533818 18.618182 23.831273 26.810182 50.641455 45.428364 81.92 54.365091 31.278545 8.192 71.493818 12.660364 122.135273 13.405091 49.896727 0.744727 96.069818 1.489455 138.519272 1.489454h157.882182l13.405091-54.365091c-18.618182 1.489455-44.683636 2.234182-78.196364 2.978909-34.257455 0-67.770182 0.744727-100.538181 0.744728-61.067636 0-111.709091-0.744727-152.669091-1.489455-46.173091-1.489455-81.92-6.702545-105.751273-16.384-21.597091-10.426182-41.704727-26.065455-61.067636-46.917818a125.98303 125.98303 0 0 0-18.618182-17.128727v-280.017455h-158.626909v52.130909h107.240727V701.284848c-31.278545 13.405091-66.280727 52.130909-106.496 116.177455l40.215273 35.746909z m905.588363-370.874182v-126.603636c23.086545 20.107636 50.641455 46.917818 82.664728 79.685818l26.810181-40.96a1522.967273 1522.967273 0 0 0-109.474909-83.409454v-20.107637h107.985455V241.788121h-107.985455V168.060121h-50.641454v73.728h-132.561455v49.152h116.922182c-34.257455 55.854545-79.685818 104.261818-137.029818 145.966546l29.044364 43.194181c47.662545-40.215273 88.622545-90.112 123.624727-150.434909v152.669091h50.641454z m309.806546 0V302.855758c26.810182 62.557091 71.493818 120.645818 132.561454 172.776727l34.257455-42.449455c-63.301818-41.704727-108.730182-89.367273-137.029818-142.242909h105.751272V241.788121H2599.098182V168.060121h-50.641455v73.728h-118.411636v49.152h89.367273a466.695758 466.695758 0 0 1-121.390546 143.732364l29.044364 42.449454c47.662545-44.683636 88.622545-102.772364 121.390545-173.521454v178.734545h50.641455zM2123.217455 850.230303c288.954182-25.320727 463.965091-114.688 525.032727-268.101818v-42.449455h-285.975273a414.440727 414.440727 0 0 0 47.662546-55.109818L2368.232727 459.248485c-48.407273 64.791273-124.369455 116.922182-228.631272 155.648l24.576 43.194182c50.641455-19.362909 96.069818-42.449455 136.28509-69.259637h289.69891c-30.533818 55.109818-81.175273 99.793455-151.924364 134.050909-35.746909-32.768-79.685818-65.536-131.816727-99.793454L2271.418182 656.601212c45.428364 29.789091 84.154182 59.578182 116.177454 87.877818-77.451636 29.044364-174.266182 47.662545-290.443636 56.599273l26.065455 49.152z m1310.72-587.589818v-52.130909H2903.691636v52.130909h530.245819z m-5.213091 592.802909l47.662545-33.512727c-37.236364-75.962182-90.112-166.074182-158.626909-268.846546l-43.194182 26.810182a2789.624242 2789.624242 0 0 1 89.367273 147.456c-133.306182 17.873455-266.612364 30.533818-400.663273 37.981091 50.641455-55.109818 110.964364-152.669091 179.479273-293.422546h357.469091V418.288485H2832.197818v53.620363h250.973091c-78.196364 158.626909-141.498182 255.441455-189.160727 291.188364-2.978909 1.489455-6.702545 3.723636-12.660364 5.213091l14.149818 54.365091c178.734545-11.915636 343.319273-26.810182 494.498909-46.173091a1536 1536 0 0 1 38.725819 78.941091z m752.174545-124.369455V515.10303h-143.732364v-90.856727h195.863273v-49.152h-195.863273V262.640485c63.301818-10.426182 119.156364-26.065455 167.563637-46.917818l-25.320727-43.194182c-102.027636 38.725818-230.865455 58.833455-385.768728 58.833454l16.384 48.407273c62.557091 0 121.390545-3.723636 175.755637-9.681454v105.006545h-193.629091v49.152h193.629091V515.10303h-142.987637v215.970909h338.106182z m-460.241454-401.408l36.491636-36.491636c-34.257455-38.725818-76.706909-78.196364-126.603636-117.666909l-37.236364 35.002182c54.365091 42.449455 96.814545 81.92 127.348364 119.156363z m-103.517091 522.798546c41.704727-69.259636 71.493818-103.517091 90.112-103.517091 8.936727 0 18.618182 5.957818 29.044363 18.618182 23.086545 26.065455 49.152 43.194182 78.196364 52.130909 29.789091 8.192 69.259636 12.660364 116.922182 13.405091 47.662545 0.744727 92.346182 1.489455 132.561454 1.489454h174.266182l11.915636-49.896727c-19.362909 1.489455-47.662545 2.234182-84.154181 2.978909-37.236364 0-72.983273 0.744727-108.730182 0.744727-58.088727 0-107.240727-0.744727-146.711273-1.489454-44.683636-1.489455-78.196364-6.702545-101.282909-17.128727-20.852364-10.426182-40.215273-26.065455-58.088727-48.407273a126.665697 126.665697 0 0 0-17.873455-17.128727V425.735758h-155.648v49.152h105.751273V701.284848c-31.278545 13.405091-66.280727 51.386182-106.496 114.688l40.215273 36.491637z m513.117091-168.308364h-237.568v-122.135273h237.568v122.135273z m256.186181 163.095273v-40.215273h212.247273v40.215273h47.662546V335.623758H4561.454545V249.235394h96.814546V198.593939H4319.418182v50.641455h100.538182v86.388364h-81.175273v511.627636h47.662545z m510.138182-11.915636c35.746909 0 58.833455-11.915636 70.749091-34.257455 11.915636-23.086545 20.107636-72.983273 25.320727-150.434909l-52.875636-17.128727c-2.234182 59.578182-5.957818 99.793455-11.915636 119.901091-5.957818 20.852364-19.362909 31.278545-40.215273 31.278545h-116.922182c-15.639273-0.744727-23.086545-14.149818-23.086545-39.470545v-244.270546h203.310545v-301.614545h-268.101818v50.641454h215.970909v198.842182h-203.310545V764.586667c0 46.917818 17.873455 70.749091 53.620363 70.749091h147.456z m-381.300363-499.712h-49.152V249.235394h49.152v86.388364z m83.409454 299.380363h-212.247273V384.775758h43.938909v48.407272c-0.744727 68.514909-14.149818 117.666909-40.96 148.945455l28.299637 26.065454c31.278545-37.236364 47.662545-95.325091 49.152-175.010909V384.775758h46.917818v134.050909c0 34.257455 15.639273 51.386182 46.917818 51.386181h37.981091v64.791273z m0-106.496h-29.044364c-12.660364 0-18.618182-6.702545-18.618181-19.362909V384.775758h47.662545v143.732363z m0 227.886546h-212.247273v-72.238546h212.247273v72.238546z m828.136727 99.048727v-253.952h213.736728v46.917818h53.620363V298.387394h-267.357091v-134.050909h-55.109818v134.050909h-266.612363v350.021818h53.620363v-46.917818h212.992v253.952h55.109818z m-55.109818-306.082909h-212.992v-198.842182h212.992v198.842182z m268.846546 0h-213.736728v-198.842182h213.736728v198.842182z m569.716363-158.626909l44.683637-30.533818c-36.491636-54.365091-89.367273-117.666909-157.882182-189.905455l-44.683637 27.554909c67.025455 70.004364 119.156364 134.795636 157.882182 192.884364z m29.044364 434.920727c29.789091 0 52.130909-9.681455 66.280727-28.299636 15.639273-22.341818 26.065455-84.154182 32.023273-186.181819l-50.641455-17.128727c-3.723636 87.133091-10.426182 139.264-19.362909 157.137455-7.447273 14.149818-20.107636 21.597091-37.981091 21.597091h-140.008727c-26.810182 0-40.215273-11.170909-40.215273-33.512728V322.963394h-53.620363v427.473454c0 49.896727 25.320727 75.217455 77.451636 75.217455h166.074182z m201.076364-114.688l49.152-22.341818c-35.746909-109.474909-76.706909-212.247273-124.369455-309.061818l-52.130909 17.128727c46.173091 90.856727 88.622545 195.863273 127.348364 314.274909z m-592.80291 32.768c38.725818-92.346182 68.514909-202.565818 89.367273-330.658909l-51.386182-10.426182c-17.873455 113.198545-45.428364 217.460364-84.154181 312.040727l46.17309 29.044364z" fill="#FFFFFF"></path><path d="M15.515152 20.883394L639.565576 209.454545v546.443637L15.515152 944.469333V20.883394z m899.878787 0.03103v923.523879l-310.365091-94.083879 130.792728-39.749818V154.779152l-130.792728-39.811879L915.393939 20.914424zM195.801212 253.952v457.479758l263.478303-79.623758V333.575758L195.801212 253.98303z" fill="#4771F8"></path></symbol><symbol id="icon-eliminate" viewBox="0 0 1024 1024"><path d="M512 128a384 384 0 1 1 0 768A384 384 0 0 1 512 128z m160 178.752L512 466.752l-160-160-45.248 45.248 160 160-160 160 45.248 45.248 160-160 160 160 45.248-45.248-160-160 160-160-45.248-45.248z"></path></symbol><symbol id="icon-Collection" viewBox="0 0 1024 1024"><path d="M448 128l28.416 128H960v640H64V128h384z m64 256l-56.448 114.304-126.144 18.368 91.264 88.96-21.504 125.696L512 672l112.832 59.328-21.504-125.632 91.264-89.024-126.144-18.368L512 384z"></path></symbol><symbol id="icon-news" viewBox="0 0 1024 1024"><path d="M128 892.288v-76.8h76.8v-384A307.2 307.2 0 0 1 473.6 126.72V64h76.8v62.72a307.2 307.2 0 0 1 268.8 304.768v384H896v76.8H588.8a76.8 76.8 0 1 1-153.6 0H128z"></path></symbol><symbol id="icon-datamigration" viewBox="0 0 1024 1024"><path d="M512 768a96 96 0 0 1 90.56 64H960v64H602.496a96 96 0 0 1-180.992 0H64v-64h357.44A96 96 0 0 1 512 768z m384-320v256H128V448h768z m-64 64h-128v128h128V512z m64-384v256H128V128h768z m-64 64h-128v128h128V192z"></path></symbol><symbol id="icon-download" viewBox="0 0 1024 1024"><path d="M640 64v384h192l-320 320-320-320h192V64h256zM64 832h896v128H64z"></path></symbol><symbol id="icon-install" viewBox="0 0 1024 1024"><path d="M733.12 102.08c5.888 8.96 10.048 18.88 12.16 29.44a189.312 189.312 0 0 0 133.568 143.808l13.696 3.328a84.48 84.48 0 0 1 53.504 129.28 189.312 189.312 0 0 0-7.744 195.264l7.744 12.864a84.48 84.48 0 0 1-53.504 129.28 189.312 189.312 0 0 0-143.872 133.504l-3.328 13.696a84.48 84.48 0 0 1-129.28 53.504 189.312 189.312 0 0 0-195.264-7.744l-12.864 7.744a84.48 84.48 0 0 1-129.28-53.504 189.312 189.312 0 0 0-133.504-143.872l-13.696-3.328a84.48 84.48 0 0 1-53.504-129.28 189.312 189.312 0 0 0 7.744-195.264l-7.744-12.864a84.48 84.48 0 0 1 53.504-129.28 189.312 189.312 0 0 0 143.872-133.504l3.328-13.696a84.48 84.48 0 0 1 129.28-53.504 189.312 189.312 0 0 0 195.264 7.744l12.864-7.744a84.48 84.48 0 0 1 117.12 24.128zM512 320a192 192 0 1 0 0 384 192 192 0 0 0 0-384z"></path></symbol><symbol id="icon-recovery" viewBox="0 0 1024 1024"><path d="M768 256v640H128V256h640z m128-128v704h-64V192H256V128h640z"></path></symbol><symbol id="icon-signout" viewBox="0 0 1024 1024"><path d="M288 416h384v-192l320 320-320 320v-192h-384v-256zM64 832h320v128H64zM64 64h320v128H64z"></path><path d="M64 128h128v768H64z"></path></symbol><symbol id="icon-see1" viewBox="0 0 1024 1024"><path d="M512 192c188.544 0 359.168 106.688 512 320-152.832 213.312-323.456 320-512 320-188.544 0-359.168-106.688-512-320 152.832-213.312 323.456-320 512-320z m0 64C362.944 256 224.448 333.248 94.848 492.992L79.808 512l0.704 0.96c128.896 165.76 266.752 248.96 414.976 254.72L512 768c149.056 0 287.552-77.248 417.152-236.992L944.128 512l-0.64-0.96c-128.896-165.76-266.752-248.96-414.976-254.72L512 256z m0 128a128 128 0 1 1 0 256 128 128 0 0 1 0-256z m0 64a64 64 0 1 0 0 128 64 64 0 0 0 0-128z"></path></symbol><symbol id="icon-QQ" viewBox="0 0 1024 1024"><path d="M234.688 365.632s-41.28 17.536-30.016 116.288c0 0-78.72 71.232-97.472 179.968 0 0-10.048 183.68 89.984 22.464 0 0 22.464 61.248 63.744 116.224 0 0-73.792 25.024-67.52 89.984 0 0-2.496 72.512 157.44 67.52 0 0 112.512-8.704 146.304-56.256h14.976V65.664S243.392 56.96 234.688 365.632z m554.624 0s41.28 17.536 30.016 116.288c0 0 78.72 71.232 97.472 179.968 0 0 9.984 183.68-89.984 22.464 0 0-22.464 61.248-63.744 116.224 0 0 73.728 25.024 67.52 89.984 0 0 2.432 72.512-157.44 67.52 0 0-112.512-8.704-146.304-56.256h-14.976V65.664s268.672-8.704 277.44 299.968z"></path></symbol><symbol id="icon-WeChat" viewBox="0 0 1024 1024"><path d="M669.44 371.392c10.176 0 20.288 0.64 30.4 1.792-27.264-124.608-162.944-217.28-317.824-217.28-173.184 0-315.008 115.968-315.008 263.168 0 84.992 47.168 154.752 126.08 208.896l-31.552 93.12 110.08-54.272c39.488 7.68 71.04 15.552 110.4 15.552 9.856 0 19.648-0.512 29.44-1.28-6.4-20.992-9.728-42.88-9.792-64.768 0-135.232 118.208-244.928 267.84-244.928zM500.224 287.488c23.68 0 39.424 15.36 39.424 38.592 0 23.296-15.744 38.72-39.424 38.72s-47.36-15.488-47.36-38.72c0-23.168 23.68-38.592 47.36-38.592zM279.68 364.8c-23.68 0-47.424-15.488-47.424-38.72 0-23.168 23.808-38.592 47.424-38.592 23.68 0 39.296 15.36 39.296 38.592 0 23.296-15.68 38.72-39.296 38.72z m677.312 247.808c0-123.776-126.016-224.64-267.52-224.64-149.952 0-267.968 100.864-267.968 224.64 0 123.904 118.016 224.512 267.904 224.512 31.36 0 63.04-7.68 94.528-15.488l86.4 46.464-23.68-77.312c63.232-46.656 110.336-108.416 110.336-178.176z m-354.432-38.784c-15.68 0-31.488-15.36-31.488-30.976 0-15.424 15.808-30.912 31.488-30.912 23.808 0 39.424 15.488 39.424 30.912 0 15.68-15.616 30.976-39.424 30.976z m173.248 0c-15.552 0-31.296-15.36-31.296-30.976 0-15.424 15.744-30.912 31.36-30.912 23.552 0 39.36 15.488 39.36 30.912 0 15.68-15.808 30.976-39.424 30.976z"></path></symbol><symbol id="icon-phone" viewBox="0 0 1024 1024"><path d="M872 676.672c-83.072-51.2-95.872-57.6-124.672-54.4-28.8 3.2-38.4 9.6-79.936 70.336-6.4 6.4-60.8 92.672-262.208-99.136-147.072-153.472-102.272-207.744-76.672-242.944 25.6-22.4 51.2-35.2 57.6-73.536 0-19.2-3.2-57.6-64-140.672-41.6-60.736-48-63.936-76.736-63.936-25.6-3.2-70.272 12.8-115.072 48-44.8 28.8-57.6 64-63.872 105.536-6.4 51.2-16 227.008 204.544 469.952 220.608 243.008 505.216 297.408 607.552 227.008 41.6-32 76.672-99.072 79.872-140.672 6.4-32-6.4-54.4-86.4-105.536z"></path></symbol><symbol id="icon-activity" viewBox="0 0 1024 1024"><path d="M192 128v64h448v64h256v448H384v-64H192v320H128V128h64z m384 448V256H192v320h256v64h384V320h-192v256H576z"></path></symbol><symbol id="icon-arrow-left" viewBox="0 0 1024 1024"><path d="M640 210.752L338.752 512 640 813.248l45.248-45.248-256-256 256-256z"></path></symbol><symbol id="icon-arrow-right" viewBox="0 0 1024 1024"><path d="M384 210.752L685.248 512 384 813.248 338.752 768l256-256-256-256z"></path></symbol><symbol id="icon-arrow-down" viewBox="0 0 1024 1024"><path d="M813.248 384L512 685.248 210.752 384 256 338.752l256 256 256-256z"></path></symbol><symbol id="icon-delete" viewBox="0 0 1024 1024"><path d="M960 192v64h-128v704H192V256H64V192h896z m-192 64H256v640h512V256z m-64-192v64H320V64h384z"></path></symbol><symbol id="icon-search" viewBox="0 0 1024 1024"><path d="M416 32a384 384 0 0 1 293.184 632l229.888 229.824-45.248 45.248-229.824-229.888A384 384 0 1 1 416 32z m0 64a320 320 0 1 0 202.496 567.744l-1.152-1.088 45.312-45.312 1.088 1.152A320 320 0 0 0 416 96z"></path></symbol><symbol id="icon-answer" viewBox="0 0 1024 1024"><path d="M960 896v64H64v-64h896zM710.08 93.056l181.056 180.992-561.856 561.792-169.856-11.136-11.136-169.856 561.792-561.792zM960 768v64H576v-64h384z m-249.92-584.576l-496 496.064 5.504 84.992 84.928 5.568 496.064-496.064-90.496-90.56z"></path></symbol><symbol id="icon-abulous" viewBox="0 0 1024 1024"><path d="M497.152 81.152a96 96 0 0 1 131.136-35.2l27.712 16a128 128 0 0 1 46.848 174.912l-29.504 51.072 143.616 0.064a160 160 0 0 1 159.68 149.504l0.32 10.496a160 160 0 0 1-0.96 17.664l-35.52 320A160 160 0 0 1 781.44 928H96v-640l281.664-0.064zM160 351.936V864H256V351.936H160z m436.288-250.496a32 32 0 0 0-43.712 11.712L414.656 352H320v512h461.44a96 96 0 0 0 91.776-67.776l2.176-8.64 1.472-8.96 35.52-320a96 96 0 0 0-95.36-106.624H562.432L647.424 204.8a64 64 0 0 0-23.424-87.424z"></path></symbol><symbol id="icon-article" viewBox="0 0 1024 1024"><path d="M896 64v832H128V64h768z m-64 64H192v704h640V128z m-128 384v64H320V512h384z m0-128v64H320V384h384z m0-128v64H320V256h384z"></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M864 114.752l45.248 45.248-352 352 352 352-45.248 45.248-352-352-352 352-45.248-45.248 352-352-352-352 45.248-45.248 352 352 352-352z"></path></symbol><symbol id="icon-see" viewBox="0 0 1024 1024"><path d="M512 192c188.544 0 359.168 106.688 512 320-152.832 213.312-323.456 320-512 320-188.544 0-359.168-106.688-512-320 152.832-213.312 323.456-320 512-320z m0 64C362.944 256 224.448 333.248 94.848 492.992L79.808 512l0.704 0.96c128.896 165.76 266.752 248.96 414.976 254.72L512 768c149.056 0 287.552-77.248 417.152-236.992L944.128 512l-0.64-0.96c-128.896-165.76-266.752-248.96-414.976-254.72L512 256z m0 128a128 128 0 1 1 0 256 128 128 0 0 1 0-256z m0 64a64 64 0 1 0 0 128 64 64 0 0 0 0-128z"></path></symbol><symbol id="icon-more" viewBox="0 0 1024 1024"><path d="M896 704v64H128v-64h768z m0-256v64H128V448h768z m0-256v64H128V192h768z"></path></symbol></svg>
  <div id="container">
  <progress value="0" max="100" class="progress" style="display: none;"></progress>
    <header id="header">
  <div id="header-inner">
    <h1 id="logo-title">

      <style>
      .logo-title-div{
        width: 40px;
        display: inline-block;
        overflow: hidden;
      }
      </style>
      <a href="https://eco.dameng.com/" style="text-decoration: none;">
        <div class="logo-title-div">
          <svg class="icon" aria-hidden="true">
            <use xlink:href="#icon-damengwendang"></use>
          </svg>
        </div>
        <span id="logo-title-span" style="
          color: white;
          vertical-align: 9px;
          text-decoration: none;
          font-size: 22px;
        ">达梦技术文档</span>
        <script>
          document.getElementById('logo-title-span').innerText = document.title.split('|').reverse()[0].trim()
        </script>
      </a>
    </h1>
    <h1 id="mobile-logo-title">
      <a href="https://eco.dameng.com/">
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-logo-blue"></use>
        </svg>
      </a>
    </h1>
    <nav id="main-nav" style="color: #fff;">
      <a href="https://eco.dameng.com/document/dm/zh-cn/start/" class="main-nav-link">快速上手</a><a href="https://eco.dameng.com/document/dm/zh-cn/ops/" class="main-nav-link">运维指南</a><a href="https://eco.dameng.com/document/dm/zh-cn/app-dev/" class="main-nav-link">应用开发指南</a><a href="https://eco.dameng.com/document/dm/zh-cn/sql-dev/" class="main-nav-link">SQL 开发指南</a><a href="https://eco.dameng.com/document/dm/zh-cn/faq/" class="main-nav-link">常见问题</a><a href="https://eco.dameng.com/document/dm/zh-cn/pm/" class="main-nav-link is-active">产品手册</a>
    </nav>
    <div id="search-input">
      <input id="search-word" placeholder="搜索文档" maxlength="255" value="[22000][-6116] 无法比较的数据类型">
      <svg class="icon search-icon" aria-hidden="true">
        <use xlink:href="#icon-search"></use>
      </svg>
      <svg class="icon clear-icon" aria-hidden="true">
        <use xlink:href="#icon-eliminate"></use>
      </svg>
    </div>

    <a id="mobile-nav-toggle">
      <span class="mobile-nav-toggle-bar"></span>
      <span class="mobile-nav-toggle-bar"></span>
      <span class="mobile-nav-toggle-bar"></span>
    </a>
  </div>
</header>
<script>
document.getElementById("search-word").onkeydown = function(e){
  var theEvent = e || window.event;
  var code = theEvent.keycode || theEvent.which || theEvent.charcode;
  if (code == 13 && document.getElementById("search-word").value) {
      window.open('/search/?value=' +  encodeURIComponent(document.getElementById("search-word").value.replace(/%/,'u0001'))+ '&searchType=0&searchPage=docs', '_blank')
  }
};
document.querySelector(".search-icon").onclick = function(){
  handleSearch();
};

function handleSearch() {
  if (document.getElementById("search-word").value) {
      window.open('/search/?value=' + encodeURIComponent(document.getElementById("search-word").value.replace(/%/,'u0001')) + '&searchType=0&searchPage=docs', '_blank')
  }
}

</script>

    <div id="content-wrap">
  <div id="content" class="wrapper" style="margin-top: 67px;">
    <div id="content-inner">
      <aside id="sidebar" role="navigation">
  <style>.othersite{height:0;overflow:hidden}</style>
  <div class="othersite">
    <a href="https://eco.dameng.com/cases/">案例</a>
    <a href="https://eco.dameng.com/community/question/">问答</a>
    <a href="https://eco.dameng.com/community/products/damengpai">一体机</a>
    <a href="https://eco.dameng.com/community/topic/">专栏</a>
  </div>
  <div class="inner" style=" overflow-x: hidden; overflow-y: auto; margin-bottom: 40px; height: calc(100vh - 80px);">
    
          <div class="left-sidebar-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 27px;">
            <a class="left-sidebar-link" onclick="toggel(this)" style="font-weight:800;">DM8 安装手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/installation-introduction.html" class="left-sidebar-link ">安装简介</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/install-uninstall.html" class="left-sidebar-link ">安装及卸载</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/license.html" class="left-sidebar-link ">许可证 (License) 的安装</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8-tools.html" class="left-sidebar-link ">数据库配置工具使用说明</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8-appendix.html" class="left-sidebar-link ">附录</a></div>
          </div>
          <div class="bar-border" style="display: inherit;"></div>
        

          <div class="left-sidebar-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 27px;">
            <a class="left-sidebar-link" onclick="toggel(this)" style="font-weight:800;">DM8 系统管理员手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/logical-structure.html" class="left-sidebar-link ">DM 逻辑结构概述</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/physical-storage.html" class="left-sidebar-link ">DM 物理存储结构</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/memory-structure.html" class="left-sidebar-link ">DM 内存结构</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/manage-threads.html" class="left-sidebar-link ">管理 DM 线程</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/system-administrator.html" class="left-sidebar-link ">DM 系统管理员</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/create-configure.html" class="left-sidebar-link ">创建和配置 DM 数据库</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/start-shut-down.html" class="left-sidebar-link ">启动和关闭数据库</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/manage-objects.html" class="left-sidebar-link ">管理模式对象的空间</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/management-table.html" class="left-sidebar-link ">管理表</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/manage-index.html" class="left-sidebar-link ">管理索引</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/manage-triggers.html" class="left-sidebar-link ">管理触发器</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/manage-views.html" class="left-sidebar-link ">管理视图、序列和同义词</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/management-pattern.html" class="left-sidebar-link ">模式对象的常规管理</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/database-management.html" class="left-sidebar-link ">数据库布局和存储管理</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/manage-partition.html" class="left-sidebar-link ">管理分区表和分区索引</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/manage-column-tables.html" class="left-sidebar-link ">管理列存储表</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/manage-table.html" class="left-sidebar-link ">管理堆表</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/full-text-search.html" class="left-sidebar-link ">全文检索</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/management-affairs.html" class="left-sidebar-link ">管理事务</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/tracking-resolution.html" class="left-sidebar-link ">问题跟踪和解决</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dynamic-management.html" class="left-sidebar-link ">动态管理和性能视图</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/query-optimization.html" class="left-sidebar-link ">查询优化</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/sql-tuning.html" class="left-sidebar-link ">SQL 调优</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/recovery.html" class="left-sidebar-link ">故障恢复</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/data-replication.html" class="left-sidebar-link ">数据复制</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/version-upgrade.html" class="left-sidebar-link ">版本升级</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8-admin-manual-appendix.html" class="left-sidebar-link ">附录</a></div>
          </div>
          <div class="bar-border" style="display: inherit;"></div>
        

          <div class="left-sidebar-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 27px;">
            <a class="left-sidebar-link" onclick="toggel(this)" style="font-weight:800;">DM8 程序员手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/programmer-overview.html" class="left-sidebar-link ">概述</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dpi-rogramming-guide.html" class="left-sidebar-link ">DPI 编程指南</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/odbc-rogramming-guide.html" class="left-sidebar-link ">DM ODBC 编程指南</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/jdbc-rogramming-guide.html" class="left-sidebar-link ">DM JDBC 编程指南</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/net-rogramming-guide.html" class="left-sidebar-link ">.NET Data Provider 编程指南</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/php-rogramming-guide.html" class="left-sidebar-link ">DM PHP 编程指南</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/fldr-rogramming-guide.html" class="left-sidebar-link ">DM FLDR 编程指南</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dexp-dimp-jni-rogramming-guide.html" class="left-sidebar-link ">DM DEXP/DIMP JNI编程指南</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/logmnr-interface-instructions.html" class="left-sidebar-link ">接口使用说明</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/nodejs-rogramming-guide.html" class="left-sidebar-link ">DM Node.js 编程指南</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/go-rogramming-guide.html" class="left-sidebar-link ">DM Go 编程指南</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/xa-rogramming-guide.html" class="left-sidebar-link ">DM XA 编程指南</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/msgpars-rogramming-guide.html" class="left-sidebar-link ">msgparse接口使用说明</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/r2dbc-rogramming-guide.html" class="left-sidebar-link ">DM R2DBC编程指南</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/programmer-appendix.html" class="left-sidebar-link ">附录</a></div>
          </div>
          <div class="bar-border" style="display: inherit;"></div>
        

          <div class="left-sidebar-link-group top open" style="display: block; transition: all 0.3s ease-out 0s; height: 588px;">
            <a class="left-sidebar-link" onclick="toggel(this)" style="font-weight:800;">DM8 SQL 语言使用手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm_sql-introduction.html" class="left-sidebar-link ">结构化查询语言 DM_SQL 简介</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/example-description.html" class="left-sidebar-link ">手册中的示例说明</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/definition-statement.html" class="left-sidebar-link ">数据定义语句</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/check-phrases.html" class="left-sidebar-link ">数据查询语句</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/insertion-deletion-modification.html" class="left-sidebar-link ">数据的插入、删除和修改</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/view.html" class="left-sidebar-link ">视图</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/materialized-view.html" class="left-sidebar-link ">物化视图</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/function.html" class="left-sidebar-link current">函数</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/consistency-concurrency.html" class="left-sidebar-link ">一致性和并发性</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/external-function.html" class="left-sidebar-link ">外部函数</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/package.html" class="left-sidebar-link ">包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/class-type.html" class="left-sidebar-link ">类类型</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/custom-type.html" class="left-sidebar-link ">自定义类型</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/trigger.html" class="left-sidebar-link ">触发器</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/synonym.html" class="left-sidebar-link ">同义词</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/external-link.html" class="left-sidebar-link ">外部链接</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/flashback-query.html" class="left-sidebar-link ">闪回查询</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/json.html" class="left-sidebar-link ">JSON</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/advanced-log.html" class="left-sidebar-link ">高级日志</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/sql-appendix.html" class="left-sidebar-link ">附录</a></div>
          </div>
          <div class="bar-border" style="display: inherit;"></div>
        

          <div class="left-sidebar-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 27px;">
            <a class="left-sidebar-link" onclick="toggel(this)" style="font-weight:800;">DM8 DIsql 使用手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/function-introduction.html" class="left-sidebar-link ">功能简介</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/getting-started-disql.html" class="left-sidebar-link ">DIsql 入门</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/environment-variable-settings.html" class="left-sidebar-link ">DIsql 环境变量设置</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/common-commands.html" class="left-sidebar-link ">DIsql 常用命令</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/disql-script.html" class="left-sidebar-link ">如何在 DIsql 中使用脚本</a></div>
          </div>
          <div class="bar-border" style="display: inherit;"></div>
        

          <div class="left-sidebar-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 27px;">
            <a class="left-sidebar-link" onclick="toggel(this)" style="font-weight:800;">DM8 dexp 和 dimp 手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dexp-dimp-function-introduction.html" class="left-sidebar-link ">功能简介</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dexp-logical-export.html" class="left-sidebar-link ">dexp 逻辑导出</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dimp-logical%20import.html" class="left-sidebar-link ">dimp 逻辑导入</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dexp-dimp-applications.html" class="left-sidebar-link ">dexp 和 dimp 应用实例</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/Promotion-demotion.html" class="left-sidebar-link ">升级和降级</a></div>
          </div>
          <div class="bar-border" style="display: inherit;"></div>
        

          <div class="left-sidebar-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 27px;">
            <a class="left-sidebar-link" onclick="toggel(this)" style="font-weight:800;">DM8 快速装载工具使用手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dmfldr-overview.html" class="left-sidebar-link ">概述</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/getting-started-dmfldr.html" class="left-sidebar-link ">dmfldr 入门</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/actual-combat-dmfldr.html" class="left-sidebar-link ">dmfldr 实战</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dmldrp-dmldrc-introduction.html" class="left-sidebar-link ">dmldrp和dmldrc入门</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dmldrp-dmldrc-draft.html" class="left-sidebar-link ">dmldrp和dmldrc实战</a></div>
          </div>
          <div class="bar-border" style="display: inherit;"></div>
        

          <div class="left-sidebar-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 27px;">
            <a class="left-sidebar-link" onclick="toggel(this)" style="font-weight:800;">DM8 dminit 使用手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dminit-function-introduction.html" class="left-sidebar-link ">功能简介</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/use-dminit.html" class="left-sidebar-link ">使用 dminit</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/view-dminit-parameters.html" class="left-sidebar-link ">查看 dminit 参数</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dminit-parameters.html" class="left-sidebar-link ">dminit 参数详解</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dminit-advanced-topics.html" class="left-sidebar-link ">dminit 高级主题</a></div>
          </div>
          <div class="bar-border" style="display: inherit;"></div>
        

          <div class="left-sidebar-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 27px;">
            <a class="left-sidebar-link" onclick="toggel(this)" style="font-weight:800;">DM8 Python 使用手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dmpython-introduction.html" class="left-sidebar-link ">dmPython 简介</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dmpython-installation.html" class="left-sidebar-link ">dmPython 安装</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dmpython-interface.html" class="left-sidebar-link ">dmPython 接口详解</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dmpython-drive.html" class="left-sidebar-link ">django_dmPython 驱动</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dmpython-dialect-package.html" class="left-sidebar-link ">sqlalchemy_dm 方言包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbutils-package.html" class="left-sidebar-link ">DBUtils 包</a></div>
          </div>
          <div class="bar-border" style="display: inherit;"></div>
        

          <div class="left-sidebar-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 27px;">
            <a class="left-sidebar-link" onclick="toggel(this)" style="font-weight:800;">DM8 Linux 脚本使用手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8_linux-script-manual.html" class="left-sidebar-link ">DM8 Linux 脚本使用手册</a></div>
          </div>
          <div class="bar-border" style="display: inherit;"></div>
        

          <div class="left-sidebar-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 27px;">
            <a class="left-sidebar-link" onclick="toggel(this)" style="font-weight:800;">DM8 PROC 使用手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/proc-overview.html" class="left-sidebar-link ">概述</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/precompiled-concept.html" class="left-sidebar-link ">预编译概念</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/embedded-program.html" class="left-sidebar-link ">嵌入式程序的组成</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/oracle-compatible.html" class="left-sidebar-link ">Oracle 兼容</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/db2-compatible.html" class="left-sidebar-link ">DB2 兼容</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/embedded-sql.html" class="left-sidebar-link ">DM 嵌入式 SQL 高级功能</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/proc-program-example.html" class="left-sidebar-link ">PRO*C 程序实例</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/proc-appendix.html" class="left-sidebar-link ">附录</a></div>
          </div>
          <div class="bar-border" style="display: inherit;"></div>
        

          <div class="left-sidebar-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 27px;">
            <a class="left-sidebar-link" onclick="toggel(this)" style="font-weight:800;">DM8 SQL 程序设计<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8_sql-overview.html" class="left-sidebar-link ">概述</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8_sql-data-types-operators.html" class="left-sidebar-link ">DMSQL 程序数据类型与操作符</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8_sql-definition-deletion.html" class="left-sidebar-link ">DMSQL 程序的定义、调用与删除</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8_sql-various-control.html" class="left-sidebar-link ">DMSQL 程序中的各种控制结构</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8_sql-sql-statement.html" class="left-sidebar-link ">DMSQL 程序中的 SQL 语句</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8_sql-exception-handling.html" class="left-sidebar-link ">DMSQL 程序异常处理</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8_sql-c-java.html" class="left-sidebar-link ">基于 C、JAVA 语法的 DMSQL 程序</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8_sql-debug.html" class="left-sidebar-link ">DMSQL 程序调试</a></div>
          </div>
          <div class="bar-border" style="display: inherit;"></div>
        

          <div class="left-sidebar-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 27px;">
            <a class="left-sidebar-link" onclick="toggel(this)" style="font-weight:800;">DM8 dmdbchk 使用手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8-dmdbchk-manual.html" class="left-sidebar-link ">DM8 dmdbchk 使用手册</a></div>
          </div>
          <div class="bar-border" style="display: inherit;"></div>
        

          <div class="left-sidebar-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 27px;">
            <a class="left-sidebar-link" onclick="toggel(this)" style="font-weight:800;">DM8 安全管理<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8-safety-overview.html" class="left-sidebar-link ">概述</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/identification-authentication.html" class="left-sidebar-link ">用户标识与鉴别</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/discretionary-access-control.html" class="left-sidebar-link ">自主访问控制</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/mandatory-access-control.html" class="left-sidebar-link ">强制访问控制</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/audit.html" class="left-sidebar-link ">审计</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/communication-encryption.html" class="left-sidebar-link ">通信加密</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/storage-encryption.html" class="left-sidebar-link ">存储加密</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/encryption-engine.html" class="left-sidebar-link ">加密引擎</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/resource-limit.html" class="left-sidebar-link ">资源限制</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/guest-weight.html" class="left-sidebar-link ">客体重用</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/user-name-password.html" class="left-sidebar-link ">登录用户名密码增强加密</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/username-password-external-storage.html" class="left-sidebar-link ">登录用户名密码外部存储</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8-safety-appendix.html" class="left-sidebar-link ">附录</a></div>
          </div>
          <div class="bar-border" style="display: inherit;"></div>
        

          <div class="left-sidebar-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 27px;">
            <a class="left-sidebar-link" onclick="toggel(this)" style="font-weight:800;">DM8 备份与还原<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/backup-restore-introduction.html" class="left-sidebar-link ">备份还原简介</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/backup-restore-principle.html" class="left-sidebar-link ">备份还原原理</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/backup-restore-combat.html" class="left-sidebar-link ">备份还原实战</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/database-restore.html" class="left-sidebar-link ">联机拷贝数据库还原恢复</a></div>
          </div>
          <div class="bar-border" style="display: inherit;"></div>
        

          <div class="left-sidebar-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 27px;">
            <a class="left-sidebar-link" onclick="toggel(this)" style="font-weight:800;">DM8 大规模并行处理MPP<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8-mpp-foreword.html" class="left-sidebar-link ">引言</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8-mpp-overview.html" class="left-sidebar-link ">概述</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/basic-concepts-principles.html" class="left-sidebar-link ">基本概念与原理</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/environment-construction.html" class="left-sidebar-link ">DM MPP 环境搭建与使用</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8-mpp-active-standby.html" class="left-sidebar-link ">DM MPP 主备系统</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8-mpp-system.html" class="left-sidebar-link ">DM MPP 系统管理</a></div>
          </div>
          <div class="bar-border" style="display: inherit;"></div>
        

          <div class="left-sidebar-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 27px;">
            <a class="left-sidebar-link" onclick="toggel(this)" style="font-weight:800;">DM8 共享存储集群<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-overview.html" class="left-sidebar-link ">DMDSC 概述</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-surroundings.html" class="left-sidebar-link ">DMDSC 使用的环境</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-technology.html" class="left-sidebar-link ">DMDSC 关键技术</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/css-introduction.html" class="left-sidebar-link ">DMCSS 介绍</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-startup-shutdown.html" class="left-sidebar-link ">DMDSC 启动、关闭流程</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-fault-handling.html" class="left-sidebar-link ">DMDSC 故障处理</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-node.html" class="left-sidebar-link ">DMDSC 节点重加入</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-configuration-instructions.html" class="left-sidebar-link ">DMDSC 配置文件</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dmasm-introduce.html" class="left-sidebar-link ">DMASM 介绍</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dmasm-image-introduction.html" class="left-sidebar-link ">DMASM 镜像介绍</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-build.html" class="left-sidebar-link ">DMDSC 搭建</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/skill-servicename.html" class="left-sidebar-link ">巧用服务名</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dynamically-expand-nodes.html" class="left-sidebar-link ">动态扩展节点</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-monitor.html" class="left-sidebar-link ">监控 DMDSC</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-backup-restore.html" class="left-sidebar-link ">备份还原</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-instructions-use.html" class="left-sidebar-link ">DMDSC 注意事项</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-version-upgrade.html" class="left-sidebar-link ">版本升级</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-appendix.html" class="left-sidebar-link ">附录</a></div>
          </div>
          <div class="bar-border" style="display: inherit;"></div>
        

          <div class="left-sidebar-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 27px;">
            <a class="left-sidebar-link" onclick="toggel(this)" style="font-weight:800;">DM8 数据守护与读写分离集群<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/data-watch-overview.html" class="left-sidebar-link ">概述</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/data-watch-daemon.html" class="left-sidebar-link ">守护进程</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/data-watch-monitor.html" class="left-sidebar-link ">监视器</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/configuration-description.html" class="left-sidebar-link ">配置文件说明</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/data-guard.html" class="left-sidebar-link ">数据守护使用说明</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/data-guard-construction.html" class="left-sidebar-link ">数据守护搭建</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dem-tools.html" class="left-sidebar-link ">利用 DEM 工具搭建数据守护</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/data-watch-version-upgrade.html" class="left-sidebar-link ">版本升级</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/data-watch-appendix.html" class="left-sidebar-link ">附录</a></div>
          </div>
          <div class="bar-border" style="display: inherit;"></div>
        

          <div class="left-sidebar-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 27px;">
            <a class="left-sidebar-link" onclick="toggel(this)" style="font-weight:800;">DM8 系统包使用手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/package-overview.html" class="left-sidebar-link ">概述</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dmgeo-package.html" class="left-sidebar-link ">DMGEO 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_advanced_rewrite-package.html" class="left-sidebar-link ">DBMS_ADVANCED_REWRITE 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_alert-package.html" class="left-sidebar-link ">DBMS_ALERT 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_binary-package.html" class="left-sidebar-link ">DBMS_BINARY 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_job-package.html" class="left-sidebar-link ">DBMS_JOB 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_lob-package.html" class="left-sidebar-link ">DBMS_LOB 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_lock-package.html" class="left-sidebar-link ">DBMS_LOCK 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_logmnr-package.html" class="left-sidebar-link ">DBMS_LOGMNR 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_metadata-package.html" class="left-sidebar-link ">DBMS_METADATA 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_obfuscation_toolkit-package.html" class="left-sidebar-link ">DBMS_OBFUSCATION_TOOLKIT 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_output-package.html" class="left-sidebar-link ">DBMS_OUTPUT 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_page-package.html" class="left-sidebar-link ">DBMS_PAGE 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_pipe-package.html" class="left-sidebar-link ">DBMS_PIPE 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_random-package.html" class="left-sidebar-link ">DBMS_RANDOM 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_rls-package.html" class="left-sidebar-link ">DBMS_RLS 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_session-package.html" class="left-sidebar-link ">DBMS_SESSION 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_space-package.html" class="left-sidebar-link ">DBMS_SPACE 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_sql-package.html" class="left-sidebar-link ">DBMS_SQL 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_transaction-package.html" class="left-sidebar-link ">DBMS_TRANSACTION 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_stats-package.html" class="left-sidebar-link ">DBMS_STATS 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_utility-package.html" class="left-sidebar-link ">DBMS_UTILITY 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_workload-package.html" class="left-sidebar-link ">DBMS_WORKLOAD_REPOSITORY 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_xmlgen-package.html" class="left-sidebar-link ">DBMS_XMLGEN 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/utl_encode-package.html" class="left-sidebar-link ">UTL_ENCODE 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/utl_file-package.html" class="left-sidebar-link ">UTL_FILE 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/utl_inaddr-package.html" class="left-sidebar-link ">UTL_INADDR 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/utl_mail-package.html" class="left-sidebar-link ">UTL_MAIL 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/utl_match-package.html" class="left-sidebar-link ">UTL_MATCH 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/utl_raw-package.html" class="left-sidebar-link ">UTL_RAW 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/utl_tcp-package.html" class="left-sidebar-link ">UTL_TCP 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/utl_url-package.html" class="left-sidebar-link ">UTL_URL 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_scheduler-package.html" class="left-sidebar-link ">DBMS_SCHEDULER 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_mview-package.html" class="left-sidebar-link ">DBMS_MVIEW 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/utl_smtp-package.html" class="left-sidebar-link ">UTL_SMTP 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/utl_http-package.html" class="left-sidebar-link ">UTL_HTTP 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/utl_t18n-package.html" class="left-sidebar-link ">UTL_I18N 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_aqadm-package.html" class="left-sidebar-link ">DBMS_AQADM 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_aq-package.html" class="left-sidebar-link ">DBMS_AQ 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_sqltume-package.html" class="left-sidebar-link ">DBMS_SQLTUNE 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_crypto-package.html" class="left-sidebar-link ">DBMS_CRYPTO 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_errlog-package.html" class="left-sidebar-link ">DBMS_ERRLOG 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/utl_compress-package.html" class="left-sidebar-link ">UTL_COMPRESS 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_application_info-package.html" class="left-sidebar-link ">DBMS_APPLICATION_INFO包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_redefinition-package.html" class="left-sidebar-link ">DBMS_REDEFINITION包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_xa-package.html" class="left-sidebar-link ">DBMS_XA包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_xmldom-package.html" class="left-sidebar-link ">DBMS_XMLDOM包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_debug-package.html" class="left-sidebar-link ">DBMS_DEBUG包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/odciconst-package.html" class="left-sidebar-link ">ODCICONST 包</a></div>
          </div>
          <div class="bar-border" style="display: inherit;"></div>
        

          <div class="left-sidebar-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 27px;">
            <a class="left-sidebar-link" onclick="toggel(this)" style="font-weight:800;">DM8 作业系统使用手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/operation-function-introduction.html" class="left-sidebar-link ">功能简介</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/create-job-environment.html" class="left-sidebar-link ">创建作业环境</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/operator.html" class="left-sidebar-link ">操作员</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/job.html" class="left-sidebar-link ">作业</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/alarm.html" class="left-sidebar-link ">警报</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/monitoring-job.html" class="left-sidebar-link ">监控作业</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/typical-example.html" class="left-sidebar-link ">一个典型示例</a></div>
          </div>
          <div class="bar-border" style="display: inherit;"></div>
        

          <div class="left-sidebar-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 27px;">
            <a class="left-sidebar-link" onclick="toggel(this)" style="font-weight:800;">DM8 分布计算集群<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dmdpc-introduction.html" class="left-sidebar-link ">DMDPC 概述</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dpc-basic-technical-concepts.html" class="left-sidebar-link ">基本概念和技术指标</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dpc-terms-use.html" class="left-sidebar-link ">DMDPC使用须知</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dpc-key-technology.html" class="left-sidebar-link ">DMDPC的关键技术</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dpc-dispose.html" class="left-sidebar-link ">DMDPC配置</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dpc-cluster-deploy.html" class="left-sidebar-link ">DMDPC 集群部署</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dpc-cluster-management-use.html" class="left-sidebar-link ">DMDPC 集群的管理与使用</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dpc-quick-loading-tool.html" class="left-sidebar-link ">快速装载工具</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dpc-query-analysis.html" class="left-sidebar-link ">查询分析</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dpc-sql-tuning.html" class="left-sidebar-link ">SQL调优</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dpc-system_table-dynamic_view.html" class="left-sidebar-link ">相关系统表和动态视图</a></div>
          </div>
          <div class="bar-border" style="display: inherit;"></div>
        <script>

  function isOpenWeb(group) {
    const children = Array.from(group.children[1].children)
    const isOpenStatus = children.map(function (element) {
      if (element.className.indexOf('left-sidebar-link-group') >= 0) {
        return isOpenWeb(element)
      } else {
        if (element.className.indexOf('current') >= 0) {
          return true
        } else {
          return false
        }
      }
    }).reduce((a, b) => a || b, false)


    if (isOpenStatus) {
      if (group.className.indexOf('top') >= 0)
        group.className = 'left-sidebar-link-group top open'
      else
        group.className = 'left-sidebar-link-group open'
    }else{
      if (group.className.indexOf('top') >= 0)
        group.className = 'left-sidebar-link-group top '
      else
        group.className = 'left-sidebar-link-group'
    }

    return isOpenStatus
  }

  function calcuHeightWeb(group){
    const link = group.children[0]
    const div = group.children[1]
    let  h = link.offsetHeight

    if(group.className.indexOf('open')<0){

    }else{
      const cheight =  Array.from(div.children).map(element=>{
        if (element.className.indexOf('left-sidebar-link-group') >= 0) {
          return calcuHeightWeb(element)
        } else {
          return (element.offsetHeight)
        }
      }).reduce((a,b)=>a+b,0)

      h = h + cheight
    }

    group.style.height = h + 'px'

    return h
  }

  window.onload=function(){
    // left sider display block

    Array.from(document.querySelectorAll('.left-sidebar-link-group.top')).forEach(v=>{
      v.style.display = "block";
      v.nextElementSibling.style.display = "inherit"
    })

    Array.from(document.querySelectorAll('.left-sidebar-link-group.top')).forEach(v=>{
      isOpenWeb(v)})

    Array.from(document.querySelectorAll('.left-sidebar-link-group.top')).forEach(v=>{
      calcuHeightWeb(v)})

    Array.from(document.querySelectorAll('.left-sidebar-link')).forEach(v=>{
      if(v.parentElement.className.indexOf('side-mobile-nav-link-group')>=0){
        v.parentElement.classList.replace('side-mobile-nav-link-group','left-sidebar-link-group')
      }
    })

  }

  </script>
    
  <script>
  document.querySelectorAll('.sidebar-title.left-siderbar').forEach(v=>v.onclick=()=>{
    if(v.className.indexOf('open') >= 0){
      v.className="sidebar-title left-siderbar"
      v.nextElementSibling.style.height="0"
    }else{      
      {        
        var x = document.querySelectorAll(".sidebar-title.left-siderbar");
        var i;
        for (i = 0; i < x.length; i++) {
          x[i].nextElementSibling.style.height = "0";
        }
      }
      v.className="sidebar-title left-siderbar open";
      v.nextElementSibling.style.height = v.nextElementSibling.children.length * 28 +"px";
    }
  })
  document.querySelectorAll('.sidebar-subtitle.second-menu').forEach(v=>v.onclick=()=>{
    // 关闭
    if(v.className.indexOf('expanded') >= 0){
      v.className = "sidebar-subtitle second-menu"; 
      v.parentElement.style.height = "28px";
      v.parentElement.parentElement.style.height = v.parentElement.parentElement.children.length  * 28 +"px";


    }else{
      // 其他全部折叠，展开当前
      {        
        var x = document.querySelectorAll(".sidebar-subtitle.second-menu");
        var i;
        for (i = 0; i < x.length; i++) {
          x[i].parentElement.style.height = "28px";
          x[i].className = "sidebar-subtitle second-menu";
        }
      }
      v.className="sidebar-subtitle second-menu expanded";
      v.parentElement.style.height = (v.nextElementSibling.children.length +1) * 28 + "px";
      
      v.parentElement.parentElement.style.height = (v.nextElementSibling.children.length + v.parentElement.parentElement.children.length) * 28 +"px";
    }
  });
  </script>
  </div>
</aside>
      <article class="article-container" itemscope="" itemtype="http://schema.org/Article">
        <div class="article-inner">
          <div class="article" style=" margin-top:24px;">
            <div>
              <header class="article-header">
                <h1 class="article-title" itemprop="name">函数</h1>
              </header>
              <div class="article-content vditor-reset" itemprop="articleBody">
                <div>
<p>在值表达式中，除了可以使用常量、列名、集函数等之外，还可以使用函数作为组成成份。DM 中支持的函数分为数值函数、字符串函数、日期时间函数、空值判断函数、类型转换函数等。在这些函数中，对于字符串类型的参数或返回值，最大支持的长度为 32K-1。</p>
<p>本手册还给出了 DM 系统函数的详细介绍。下列各表列出了函数的简要说明。在本章各例中，如不特别说明，各例均使用示例库 BOOKSHOP，用户均为建表者 SYSDBA。</p>
<center>表8.1 数值函数</center>
<table>
<thead>
<tr>
<th><strong>序号</strong></th>
<th><strong>函数名</strong></th>
<th><strong>功能简要说明</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>01</td>
<td>ABS(n)</td>
<td>求数值 n 的绝对值</td>
</tr>
<tr>
<td>02</td>
<td>ACOS(n)</td>
<td>求数值 n 的反余弦值</td>
</tr>
<tr>
<td>03</td>
<td>ASIN(n)</td>
<td>求数值 n 的反正弦值</td>
</tr>
<tr>
<td>04</td>
<td>ATAN(n)</td>
<td>求数值 n 的反正切值</td>
</tr>
<tr>
<td>05</td>
<td>ATAN2(n1,n2)</td>
<td>求数值 n1/n2 的反正切值</td>
</tr>
<tr>
<td>06</td>
<td>CEIL(n)</td>
<td>求大于或等于数值 n 的最小整数</td>
</tr>
<tr>
<td>07</td>
<td>CEILING(n)</td>
<td>求大于或等于数值 n 的最小整数，等价于 CEIL(n)</td>
</tr>
<tr>
<td>08</td>
<td>COS(n)</td>
<td>求数值 n 的余弦值</td>
</tr>
<tr>
<td>09</td>
<td>COSH(n)</td>
<td>求数值 n 的双曲余弦值</td>
</tr>
<tr>
<td>10</td>
<td>COT(n)</td>
<td>求数值 n 的余切值</td>
</tr>
<tr>
<td>11</td>
<td>DEGREES(n)</td>
<td>求弧度 n 对应的角度值</td>
</tr>
<tr>
<td>12</td>
<td>EXP(n)</td>
<td>求数值 n 的自然指数</td>
</tr>
<tr>
<td>13</td>
<td>FLOOR(n)</td>
<td>求小于或等于数值 n 的最大整数</td>
</tr>
<tr>
<td>14</td>
<td>GREATEST(n {,n})</td>
<td>求一个或多个数中最大的一个</td>
</tr>
<tr>
<td>15</td>
<td>GREAT (n1,n2)</td>
<td>求 n1、n2 两个数中最大的一个</td>
</tr>
<tr>
<td>16</td>
<td>LEAST(n {,n})</td>
<td>求一个或多个数中最小的一个</td>
</tr>
<tr>
<td>17</td>
<td>LN(n)</td>
<td>求数值 n 的自然对数</td>
</tr>
<tr>
<td>18</td>
<td>LOG(n1[,n2])</td>
<td>求数值 n2 以 n1 为底数的对数</td>
</tr>
<tr>
<td>19</td>
<td>LOG10(n)</td>
<td>求数值 n 以 10 为底的对数</td>
</tr>
<tr>
<td>20</td>
<td>MOD(m,n)</td>
<td>求数值 m 被数值 n 除的余数</td>
</tr>
<tr>
<td>21</td>
<td>PI()</td>
<td>得到常数 π</td>
</tr>
<tr>
<td>22</td>
<td>POWER(n1,n2)/POWER2(n1,n2)</td>
<td>求数值 n2 以 n1 为基数的指数</td>
</tr>
<tr>
<td>23</td>
<td>RADIANS(n)</td>
<td>求角度 n 对应的弧度值</td>
</tr>
<tr>
<td>24</td>
<td>RAND([n])</td>
<td>求一个 0 到 1 之间的随机浮点数</td>
</tr>
<tr>
<td>25</td>
<td>ROUND(n[,m])</td>
<td>求四舍五入值函数</td>
</tr>
<tr>
<td>26</td>
<td>SIGN(n)</td>
<td>判断数值的数学符号</td>
</tr>
<tr>
<td>27</td>
<td>SIN(n)</td>
<td>求数值 n 的正弦值</td>
</tr>
<tr>
<td>28</td>
<td>SINH(n)</td>
<td>求数值 n 的双曲正弦值</td>
</tr>
<tr>
<td>29</td>
<td>SQRT(n)</td>
<td>求数值 n 的平方根</td>
</tr>
<tr>
<td>30</td>
<td>TAN(n)</td>
<td>求数值 n 的正切值</td>
</tr>
<tr>
<td>31</td>
<td>TANH(n)</td>
<td>求数值 n 的双曲正切值</td>
</tr>
<tr>
<td>32</td>
<td>TO_NUMBER (char [,fmt])</td>
<td>将 CHAR、VARCHAR、VARCHAR2 等类型的字符串转换为 DECIMAL 类型的数值</td>
</tr>
<tr>
<td>33</td>
<td>TRUNC(n[,m])或 TRUNC(str,[,m])</td>
<td>截取数值函数，str 内只能为数字和'-'、'+'、'.'的组合</td>
</tr>
<tr>
<td>34</td>
<td>TRUNCATE(n[,m])或 TRUNCATE(str,[,m])</td>
<td>截取数值函数，等价于 TRUNC 函数</td>
</tr>
<tr>
<td>35</td>
<td>TO_CHAR(n [, fmt [, 'nls' ] ])</td>
<td>将数值类型的数据转换为 VARCHAR 类型输出</td>
</tr>
<tr>
<td>36</td>
<td>BITAND(n1, n2)</td>
<td>求两个数值型数值按位进行 AND 运算的结果</td>
</tr>
<tr>
<td>37</td>
<td>NANVL(n1, n2)</td>
<td>有一个参数为空则返回空，否则返回 n1 的值</td>
</tr>
<tr>
<td>38</td>
<td>REMAINDER(n1, n2)</td>
<td>计算 n1 除 n2 的余数，余数取绝对值更小的那一个</td>
</tr>
<tr>
<td>39</td>
<td>TO_BINARY_FLOAT(n)</td>
<td>将 number、real 或 double 类型数值转换成 binary float 类型</td>
</tr>
<tr>
<td>40</td>
<td>TO_BINARY_DOUBLE(n)</td>
<td>将 number、real 或 float 类型数值转换成 binary double 类型</td>
</tr>
</tbody>
</table>
<center>表8.2 字符串函数</center>
<table>
<thead>
<tr>
<th><strong>序号</strong></th>
<th><strong>函数名</strong></th>
<th><strong>功能简要说明</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>01</td>
<td>ASCII(char)</td>
<td>返回字符对应的整数</td>
</tr>
<tr>
<td>02</td>
<td>ASCIISTR(char)</td>
<td>将字符串 char 中，非 ASCII 的字符转成\XXXX(UTF-16)格式，ASCII 字符保持不变</td>
</tr>
<tr>
<td>03</td>
<td>BIT_LENGTH(char)</td>
<td>求字符串的位长度</td>
</tr>
<tr>
<td>04</td>
<td>CHAR(n)</td>
<td>返回整数 n 对应的字符</td>
</tr>
<tr>
<td>05</td>
<td>CHAR_LENGTH(char)/ CHARACTER_LENGTH(char)</td>
<td>求字符串的串长度</td>
</tr>
<tr>
<td>06</td>
<td>CHR(n)</td>
<td>返回整数 n 对应的字符，等价于 CHAR(n)</td>
</tr>
<tr>
<td>07</td>
<td>CONCAT(char1,char2,char3,…)</td>
<td>顺序联结多个字符串成为一个字符串</td>
</tr>
<tr>
<td>08</td>
<td>DIFFERENCE(char1,char2)</td>
<td>比较两个字符串的 SOUNDEX 值之差异，返回两个 SOUNDEX 值串同一位置出现相同字符的个数。</td>
</tr>
<tr>
<td>09</td>
<td>INITCAP(char)</td>
<td>将字符串中单词的首字符转换成大写的字符</td>
</tr>
<tr>
<td>10</td>
<td>INS(char1,begin,n,char2)</td>
<td>删除在字符串 char1 中以 begin 参数所指位置开始的 n 个字符, 再把 char2 插入到 char1 串的 begin 所指位置</td>
</tr>
<tr>
<td>11</td>
<td>INSERT(char1,n1,n2,char2) / INSSTR(char1,n1,n2,char2)</td>
<td>将字符串 char1 从 n1 的位置开始删除 n2 个字符，并将 char2 插入到 char1 中 n1 的位置</td>
</tr>
<tr>
<td>12</td>
<td>INSTR(char1,char2[,n,[m]])</td>
<td>从输入字符串 char1 的第 n 个字符开始查找字符串 char2 的第 m 次出现的位置，以字符计算</td>
</tr>
<tr>
<td>13</td>
<td>INSTRB(char1,char2[,n,[m]])</td>
<td>从 char1 的第 n 个字节开始查找字符串 char2 的第 m 次出现的位置，以字节计算</td>
</tr>
<tr>
<td>14</td>
<td>LCASE(char)</td>
<td>将大写的字符串转换为小写的字符串</td>
</tr>
<tr>
<td>15</td>
<td>LEFT(char,n) / LEFTSTR(char,n)</td>
<td>返回字符串最左边的 n 个字符组成的字符串</td>
</tr>
<tr>
<td>16</td>
<td>LEN(char)</td>
<td>返回给定字符串表达式的字符(而不是字节)个数（汉字为一个字符），其中不包含尾随空格</td>
</tr>
<tr>
<td>17</td>
<td>LENGTH(clob)</td>
<td>返回给定字符串表达式的字符(而不是字节)个数（汉字为一个字符），其中包含尾随空格</td>
</tr>
<tr>
<td>18</td>
<td>OCTET_LENGTH(char)</td>
<td>返回输入字符串的字节数</td>
</tr>
<tr>
<td>19</td>
<td>LOCATE(char1,char2[,n])</td>
<td>返回 char1 在 char2 中首次出现的位置</td>
</tr>
<tr>
<td>20</td>
<td>LOWER(char)</td>
<td>将大写的字符串转换为小写的字符串</td>
</tr>
<tr>
<td>21</td>
<td>LPAD(char1,n,char2)</td>
<td>在输入字符串的左边填充上 char2 指定的字符，将其拉伸至 n 个字节长度</td>
</tr>
<tr>
<td>22</td>
<td>LTRIM(str[,set])</td>
<td>删除字符串 str 左边起，出现在 set 中的任何字符，当遇到不在 set 中的第一个字符时返回结果</td>
</tr>
<tr>
<td>23</td>
<td>POSITION(char1 IN char2) / POSITION(char1, char2)</td>
<td>求串 1 在串 2 中第一次出现的位置</td>
</tr>
<tr>
<td>24</td>
<td>REPEAT(char,n) / REPEATSTR(char,n)</td>
<td>返回将字符串重复 n 次形成的字符串</td>
</tr>
<tr>
<td>25</td>
<td>REPLACE(STR, search [,replace] )</td>
<td>将输入字符串 STR 中所有出现的字符串 search 都替换成字符串 replace ,其中 STR 为 char、clob 或 text 类型</td>
</tr>
<tr>
<td>26</td>
<td>REPLICATE(char,times)</td>
<td>把字符串 char 自己复制 times 份</td>
</tr>
<tr>
<td>27</td>
<td>REVERSE(char)</td>
<td>将字符串反序</td>
</tr>
<tr>
<td>28</td>
<td>RIGHT / RIGHTSTR(char,n)</td>
<td>返回字符串最右边 n 个字符组成的字符串</td>
</tr>
<tr>
<td>29</td>
<td>RPAD(char1,n[,char2])</td>
<td>类似 LPAD 函数，只是向右拉伸该字符串使之达到 n 个字节长度</td>
</tr>
<tr>
<td>30</td>
<td>RTRIM(str[,set])</td>
<td>删除字符串 str 右边起出现的 set 中的任何字符，当遇到不在 set 中的第一个字符时返回结果</td>
</tr>
<tr>
<td>31</td>
<td>SOUNDEX(char)</td>
<td>返回一个表示字符串发音的字符串</td>
</tr>
<tr>
<td>32</td>
<td>SPACE(n)</td>
<td>返回一个包含 n 个空格的字符串</td>
</tr>
<tr>
<td>33</td>
<td>STRPOSDEC(char)</td>
<td>把字符串 char 中最后一个字节的值减一</td>
</tr>
<tr>
<td>34</td>
<td>STRPOSDEC(char,pos)</td>
<td>把字符串 char 中指定位置 pos 上的字节值减一</td>
</tr>
<tr>
<td>35</td>
<td>STRPOSINC(char)</td>
<td>把字符串 char 中最后一个字节的值加一</td>
</tr>
<tr>
<td>36</td>
<td>STRPOSINC(char,pos)</td>
<td>把字符串 char 中指定位置 pos 上的字节值加一</td>
</tr>
<tr>
<td>37</td>
<td>STUFF(char1,begin,n,char2)</td>
<td>删除在字符串 char1 中以 begin 参数所指位置开始的 n 个字符, 再把 char2 插入到 char1 串的 begin 所指位置</td>
</tr>
<tr>
<td>38</td>
<td>SUBSTR(char[,m[,n]]) / SUBSTRING(char [FROM m [FOR n]])</td>
<td>返回 char 中从字符位置 m 开始的 n 个字符</td>
</tr>
<tr>
<td>39</td>
<td>SUBSTRB(char,m[,n])</td>
<td>SUBSTR 函数等价的单字节形式</td>
</tr>
<tr>
<td>40</td>
<td>TO_CHAR(character)</td>
<td>将 VARCHAR、CLOB、TEXT 类型的数据转化为 VARCHAR 类型输出</td>
</tr>
<tr>
<td>41</td>
<td>TRANSLATE(char,from,to)</td>
<td>将所有出现在搜索字符集中的字符转换成字符集中的相应字符</td>
</tr>
<tr>
<td>42</td>
<td>TRIM([&lt;&lt;LEADING|TRAILING|BOTH&gt; [char] | char&gt; FROM] str)</td>
<td>删去字符串 str 中由 char 指定的字符</td>
</tr>
<tr>
<td>43</td>
<td>UCASE(char)</td>
<td>将小写的字符串转换为大写的字符串</td>
</tr>
<tr>
<td>44</td>
<td>UPPER(char)</td>
<td>将小写的字符串转换为大写的字符串</td>
</tr>
<tr>
<td>45</td>
<td>NLS_UPPER(char)</td>
<td>将小写的字符串转换为大写的字符串</td>
</tr>
<tr>
<td>46</td>
<td>REGEXP</td>
<td>根据符合 POSIX 标准的正则表达式进行字符串匹配</td>
</tr>
<tr>
<td>47</td>
<td>OVERLAY(char1 PLACING char2 FROM int [FOR int])</td>
<td>字符串覆盖函数，用 char2 覆盖 char1 中指定的子串，返回修改后的 char1</td>
</tr>
<tr>
<td>48</td>
<td>TEXT_EQUAL(n1,n2)</td>
<td>返回两个 LONGVARCHAR 类型的值的比较结果，相同返回 1，否则返回 0</td>
</tr>
<tr>
<td>49</td>
<td>BLOB_EQUAL(n1,n2)</td>
<td>返回两个 LONGVARBINARY 类型的值的比较结果，相同返回 1，否则返回 0</td>
</tr>
<tr>
<td>50</td>
<td>NLSSORT(str1 [,nls_sort=str2])</td>
<td>返回对自然语言排序的编码</td>
</tr>
<tr>
<td>51</td>
<td>GREATEST(char {,char})</td>
<td>求一个或多个字符串中最大的字符串</td>
</tr>
<tr>
<td>52</td>
<td>GREAT (char1, char2)</td>
<td>求 char 1、char 2 中最大的字符串</td>
</tr>
<tr>
<td>53</td>
<td>to_single_byte (char)</td>
<td>将多字节形式的字符（串）转换为对应的单字节形式</td>
</tr>
<tr>
<td>54</td>
<td>to_multi_byte (char)</td>
<td>将单字节形式的字符（串）转换为对应的多字节形式</td>
</tr>
<tr>
<td>55</td>
<td>EMPTY_CLOB ()</td>
<td>初始化 clob 字段</td>
</tr>
<tr>
<td>56</td>
<td>EMPTY_BLOB ()</td>
<td>初始化 blob 字段</td>
</tr>
<tr>
<td>57</td>
<td>UNISTR (char)</td>
<td>将字符串 char 中，ASCII 编码或 Unicode 编码（‘\XXXX’4 个 16 进制字符格式）转成本地字符。对于其他字符保持不变。</td>
</tr>
<tr>
<td>58</td>
<td>ISNULL(char)</td>
<td>判断表达式是否为 NULL</td>
</tr>
<tr>
<td>59</td>
<td>CONCAT_WS(delim, char1,char2,char3,…)</td>
<td>顺序联结多个字符串成为一个字符串，并用 delim 分割</td>
</tr>
<tr>
<td>60</td>
<td>SUBSTRING_INDEX(char, delim, count)</td>
<td>按关键字截取字符串，截取到指定分隔符出现指定次数位置之前</td>
</tr>
<tr>
<td>61</td>
<td>COMPOSE(varchar str)</td>
<td>在 UTF8 库下，将 str 以本地编码的形式返回</td>
</tr>
<tr>
<td>62</td>
<td>FIND_IN_SET(str,  strlist[,separator])</td>
<td>查询 strlist 中是否包含 str，返回 str 在 strlist 中第一次出现的位置或 NULL</td>
</tr>
<tr>
<td>63</td>
<td>TRUNC(str1, str2)</td>
<td>截取字符串函数</td>
</tr>
</tbody>
</table>
<center>表8.3 日期时间函数</center>
<table>
<thead>
<tr>
<th><strong>序号</strong></th>
<th><strong>函数名</strong></th>
<th><strong>功能简要说明</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>01</td>
<td>ADD_DAYS(date,n)</td>
<td>返回日期加上 n 天后的新日期</td>
</tr>
<tr>
<td>02</td>
<td>ADD_MONTHS(date,n)</td>
<td>在输入日期上加上指定的几个月返回一个新日期</td>
</tr>
<tr>
<td>03</td>
<td>ADD_WEEKS(date,n)</td>
<td>返回日期加上 n 个星期后的新日期</td>
</tr>
<tr>
<td>04</td>
<td>CURDATE()</td>
<td>返回系统当前日期</td>
</tr>
<tr>
<td>05</td>
<td>CURTIME(n)</td>
<td>返回系统当前时间</td>
</tr>
<tr>
<td>06</td>
<td>CURRENT_DATE()</td>
<td>返回系统当前日期</td>
</tr>
<tr>
<td>07</td>
<td>CURRENT_TIME(n)</td>
<td>返回系统当前时间</td>
</tr>
<tr>
<td>08</td>
<td>CURRENT_TIMESTAMP(n)</td>
<td>返回系统当前带会话时区信息的时间戳</td>
</tr>
<tr>
<td>09</td>
<td>DATEADD(datepart,n,date)</td>
<td>向指定的日期加上一段时间</td>
</tr>
<tr>
<td>10</td>
<td>DATEDIFF(datepart,date1,date2)</td>
<td>返回跨两个指定日期的日期和时间边界数</td>
</tr>
<tr>
<td>11</td>
<td>DATEPART(datepart,date)</td>
<td>返回代表日期的指定部分的整数</td>
</tr>
<tr>
<td>12</td>
<td>DAY(date)</td>
<td>返回日期中的天数</td>
</tr>
<tr>
<td>13</td>
<td>DAYNAME(date)</td>
<td>返回日期的星期名称</td>
</tr>
<tr>
<td>14</td>
<td>DAYOFMONTH(date)</td>
<td>返回日期为所在月份中的第几天</td>
</tr>
<tr>
<td>15</td>
<td>DAYOFWEEK(date)</td>
<td>返回日期为所在星期中的第几天</td>
</tr>
<tr>
<td>16</td>
<td>DAYOFYEAR(date)</td>
<td>返回日期为所在年中的第几天</td>
</tr>
<tr>
<td>17</td>
<td>DAYS_BETWEEN(date1,date2)</td>
<td>返回两个日期之间的天数</td>
</tr>
<tr>
<td>18</td>
<td>EXTRACT(时间字段 FROM date)</td>
<td>抽取日期时间或时间间隔类型中某一个字段的值</td>
</tr>
<tr>
<td>19</td>
<td>GETDATE(n)</td>
<td>返回系统当前时间戳</td>
</tr>
<tr>
<td>20</td>
<td>GREATEST(date {,date})</td>
<td>求一个或多个日期中的最大日期</td>
</tr>
<tr>
<td>21</td>
<td>GREAT (date1,date2)</td>
<td>求 date1、date2 中的最大日期</td>
</tr>
<tr>
<td>22</td>
<td>HOUR(time)</td>
<td>返回时间中的小时分量</td>
</tr>
<tr>
<td>23</td>
<td>LAST_DAY(date)</td>
<td>返回输入日期所在月份最后一天的日期</td>
</tr>
<tr>
<td>24</td>
<td>LEAST(date {,date})</td>
<td>求一个或多个日期中的最小日期</td>
</tr>
<tr>
<td>25</td>
<td>MINUTE(time)</td>
<td>返回时间中的分钟分量</td>
</tr>
<tr>
<td>26</td>
<td>MONTH(date)</td>
<td>返回日期中的月份分量</td>
</tr>
<tr>
<td>27</td>
<td>MONTHNAME(date)</td>
<td>返回日期中月分量的名称</td>
</tr>
<tr>
<td>28</td>
<td>MONTHS_BETWEEN(date1,date2)</td>
<td>返回两个日期之间的月份数</td>
</tr>
<tr>
<td>29</td>
<td>NEXT_DAY(date1,char2)</td>
<td>返回输入日期指定若干天后的日期</td>
</tr>
<tr>
<td>30</td>
<td>NOW(n)</td>
<td>返回系统当前时间戳</td>
</tr>
<tr>
<td>31</td>
<td>QUARTER(date)</td>
<td>返回日期在所处年中的季节数</td>
</tr>
<tr>
<td>32</td>
<td>SECOND(time)</td>
<td>返回时间中的秒分量</td>
</tr>
<tr>
<td>33</td>
<td>ROUND (date1[, fmt])</td>
<td>把日期四舍五入到最接近格式元素指定的形式</td>
</tr>
<tr>
<td>34</td>
<td>TIMESTAMPADD(datepart,n,timestamp)</td>
<td>返回时间戳 timestamp 加上 n 个 datepart 指定的时间段的结果</td>
</tr>
<tr>
<td>35</td>
<td>TIMESTAMPDIFF(datepart,timeStamp1,timestamp2)</td>
<td>返回一个表明 timestamp2 与 timestamp1 之间的指定 datepart 类型时间间隔的整数</td>
</tr>
<tr>
<td>36</td>
<td>SYSDATE()</td>
<td>返回系统的当前日期</td>
</tr>
<tr>
<td>37</td>
<td>TO_DATE(CHAR[,fmt[,'nls']]) /TO_TIMESTAMP(CHAR[,fmt[,'nls']]) / TO_TIMESTAMP_TZ(CHAR[,fmt])</td>
<td>字符串转换为日期时间数据类型</td>
</tr>
<tr>
<td>38</td>
<td>FROM_TZ(timestamp,timezone|tz_name])</td>
<td>将时间戳类型 timestamp 和时区类型 timezone（或时区名称 tz_name）转化为 timestamp with timezone 类型</td>
</tr>
<tr>
<td>39</td>
<td>TZ_OFFSET(timezone| [tz_name])</td>
<td>返回给定的时区或时区名和标准时区(UTC)的偏移量</td>
</tr>
<tr>
<td>40</td>
<td>TRUNC(date[,fmt])</td>
<td>把日期截断到最接近格式元素指定的形式</td>
</tr>
<tr>
<td>41</td>
<td>WEEK(date)</td>
<td>返回日期为所在年中的第几周</td>
</tr>
<tr>
<td>42</td>
<td>WEEKDAY(date)</td>
<td>返回当前日期的星期值</td>
</tr>
<tr>
<td>43</td>
<td>WEEKS_BETWEEN(date1,date2)</td>
<td>返回两个日期之间相差周数</td>
</tr>
<tr>
<td>44</td>
<td>YEAR(date)</td>
<td>返回日期的年分量</td>
</tr>
<tr>
<td>45</td>
<td>YEARS_BETWEEN(date1,date2)</td>
<td>返回两个日期之间相差年数</td>
</tr>
<tr>
<td>46</td>
<td>LOCALTIME(n)</td>
<td>返回系统当前时间</td>
</tr>
<tr>
<td>47</td>
<td>LOCALTIMESTAMP(n)</td>
<td>返回系统当前时间戳</td>
</tr>
<tr>
<td>48</td>
<td>OVERLAPS</td>
<td>返回两个时间段是否存在重叠</td>
</tr>
<tr>
<td>49</td>
<td>TO_CHAR(date[,fmt[,nls]])</td>
<td>将日期数据类型 DATE 转换为一个在日期语法 fmt 中指定语法的 VARCHAR 类型字符串。</td>
</tr>
<tr>
<td>50</td>
<td>SYSTIMESTAMP(n)</td>
<td>返回系统当前带数据库时区信息的时间戳</td>
</tr>
<tr>
<td>51</td>
<td>NUMTODSINTERVAL(dec,interval_unit)</td>
<td>转换一个指定的 DEC 类型到 INTERVAL DAY TO SECOND</td>
</tr>
<tr>
<td>52</td>
<td>NUMTOYMINTERVAL (dec,interval_unit)</td>
<td>转换一个指定的 DEC 类型值到 INTERVAL YEAR TO MONTH</td>
</tr>
<tr>
<td>53</td>
<td>WEEK(date, mode)</td>
<td>根据指定的 mode 计算日期为年中的第几周</td>
</tr>
<tr>
<td>54</td>
<td>UNIX_TIMESTAMP (datetime)</td>
<td>返回自标准时区的'1970-01-01 00:00:00 +0:00'的到本地会话时区的指定时间的秒数差</td>
</tr>
<tr>
<td>55</td>
<td>from_unixtime(unixtime)</td>
<td>返回将自'1970-01-01 00:00:00'的秒数差转成本地会话时区的时间戳类型</td>
</tr>
<tr>
<td></td>
<td>from_unixtime(unixtime, fmt)</td>
<td>将自'1970-01-01 00:00:00'的秒数差转成本地会话时区的指定 fmt 格式的时间串</td>
</tr>
<tr>
<td>56</td>
<td>SESSIONTIMEZONE</td>
<td>返回当前会话的时区</td>
</tr>
<tr>
<td>57</td>
<td>DBTIMEZONE</td>
<td>返回当前数据库的时区</td>
</tr>
<tr>
<td>58</td>
<td>DATE_FORMAT(d, format)</td>
<td>以不同的格式显示日期/时间数据</td>
</tr>
<tr>
<td>59</td>
<td>TIME_TO_SEC(d)</td>
<td>将时间换算成秒</td>
</tr>
<tr>
<td>60</td>
<td>SEC_TO_TIME(sec)</td>
<td>将秒换算成时间</td>
</tr>
<tr>
<td>61</td>
<td>TO_DAYS(timestamp)</td>
<td>转换成公元 0 年 1 月 1 日的天数差</td>
</tr>
<tr>
<td>62</td>
<td>DATE_ADD(datetime, interval)</td>
<td>返回一个日期或时间值加上一个时间间隔的时间值</td>
</tr>
<tr>
<td>63</td>
<td>DATE_SUB(datetime, interval)</td>
<td>返回一个日期或时间值减去一个时间间隔的时间值</td>
</tr>
<tr>
<td>64</td>
<td>SYS_EXTRACT_UTC(d timestamp)</td>
<td>将所给时区信息转换为 UTC 时区信息</td>
</tr>
<tr>
<td>65</td>
<td>TO_DSINTERVAL(d timestamp)</td>
<td>转换一个 timestamp 类型值到 INTERVAL DAY TO SECOND</td>
</tr>
<tr>
<td>66</td>
<td>TO_YMINTERVAL(d timestamp)</td>
<td>转换一个 timestamp 类型值到 INTERVAL YEAR TO MONTH</td>
</tr>
</tbody>
</table>
<center>表8.4 空值判断函数</center>
<table>
<thead>
<tr>
<th><strong>序号</strong></th>
<th><strong>函数名</strong></th>
<th><strong>功能简要说明</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>01</td>
<td>COALESCE(n1,n2,…nx)</td>
<td>返回第一个非空的值</td>
</tr>
<tr>
<td>02</td>
<td>IFNULL(n1,n2)</td>
<td>当 n1 为非空时，返回 n1；若 n1 为空，则返回 n2</td>
</tr>
<tr>
<td>03</td>
<td>ISNULL(n1,n2)</td>
<td>当 n1 为非空时，返回 n1；若 n1 为空，则返回 n2</td>
</tr>
<tr>
<td>04</td>
<td>NULLIF(n1,n2)</td>
<td>如果 n1=n2 返回 NULL，否则返回 n1</td>
</tr>
<tr>
<td>05</td>
<td>NVL(n1,n2)</td>
<td>返回第一个非空的值</td>
</tr>
<tr>
<td>06</td>
<td>NULL_EQU</td>
<td>返回两个类型相同的值的比较</td>
</tr>
</tbody>
</table>
<center>表8.5 类型转换函数</center>
<table>
<thead>
<tr>
<th><strong>序号</strong></th>
<th><strong>函数名</strong></th>
<th><strong>功能简要说明</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>01</td>
<td>CAST(value AS 类型说明)</td>
<td>将 value 转换为指定的类型</td>
</tr>
<tr>
<td>02</td>
<td>CONVERT(类型说明,value)；<br>CONVERT(char, dest_char_set [,source_char_set ] )</td>
<td>用于 INI 参数 ENABLE_CS_CVT=0 时，将 value 转换为指定的类型；<br>用于 INI 参数 ENABLE_CS_CVT=1 时，将字符串从原串编码格式转换成目的编码格式</td>
</tr>
<tr>
<td>03</td>
<td>HEXTORAW(exp)</td>
<td>将 exp 转换为 BLOB 类型</td>
</tr>
<tr>
<td>04</td>
<td>RAWTOHEX(exp)</td>
<td>将 exp 转换为 VARCHAR 类型</td>
</tr>
<tr>
<td>05</td>
<td>BINTOCHAR(exp)</td>
<td>将 exp 转换为 CHAR</td>
</tr>
<tr>
<td>06</td>
<td>TO_BLOB(value)</td>
<td>将 value 转换为 blob</td>
</tr>
<tr>
<td>07</td>
<td>UNHEX(exp)</td>
<td>将十六进制的 exp 转换为格式字符串</td>
</tr>
<tr>
<td>08</td>
<td>HEX(exp)</td>
<td>将字符串的 exp 转换为十六进制字符串</td>
</tr>
</tbody>
</table>
<center>表8.6 杂类函数</center>
<table>
<thead>
<tr>
<th><strong>序号</strong></th>
<th><strong>函数名</strong></th>
<th><strong>功能简要说明</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>01</td>
<td>DECODE(exp, search1, result1, … searchn, resultn [,default])</td>
<td>查表译码</td>
</tr>
<tr>
<td>02</td>
<td>ISDATE(exp)</td>
<td>判断表达式是否为有效的日期</td>
</tr>
<tr>
<td>03</td>
<td>ISNUMERIC(exp)</td>
<td>判断表达式是否为有效的数值</td>
</tr>
<tr>
<td>04</td>
<td>DM_HASH (exp)</td>
<td>根据给定表达式生成 HASH 值</td>
</tr>
<tr>
<td>05</td>
<td>LNNVL(condition)</td>
<td>根据表达式计算结果返回布尔值</td>
</tr>
<tr>
<td>06</td>
<td>LENGTHB(value)</td>
<td>返回 value 的字节数</td>
</tr>
<tr>
<td>07</td>
<td>FIELD(value, e1, e2, e3, e4...en)</td>
<td>返回 value 在列表 e1, e2, e3, e4...en 中的位置序号，不在输入列表时则返回 0</td>
</tr>
<tr>
<td>08</td>
<td>ORA_HASH(exp [,max_bucket [,seed_value]])</td>
<td>为表达式 exp 生成 HASH 桶值</td>
</tr>
</tbody>
</table>
<h2 id="8-1-数值函数" class="article-heading" style="position: relative;">8.1 数值函数<a class="article-anchor" href="#8.1 数值函数" aria-hidden="true"></a><div style="position: absolute; top: -100px;" id="8.1 数值函数"></div></h2>
<p>数值函数接受数值参数并返回数值作为结果。</p>
<p><strong>1．函数 ABS</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：ABS(n)
</code></pre>
<p>功能：返回 n 的绝对值。n 必须是数值类型。</p>
<p>例 查询现价小于 10 元或大于 20 元的信息。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT PRODUCTID,NAME FROM PRODUCTION.PRODUCT WHERE ABS(NOWPRICE-15)&gt;5;
</code></pre>
<p>查询结果如下:</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">PRODUCTID   NAME
----------- -------------------------
3           老人与海
4           射雕英雄传(全四册)
6           长征
7           数据结构(C语言版)(附光盘)
10          噼里啪啦丛书(全7册)
</code></pre>
<p><strong>2．函数 ACOS</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：ACOS(n)
</code></pre>
<p>功能：返回 n 的反余弦值。n 必须是数值类型，且取值在-1 到 1 之间，函数结果从 0 到 π。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT acos(0);
</code></pre>
<p>查询结果为：1.570796326794897E+000</p>
<p><strong>3．函数 ASIN</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：ASIN(n)
</code></pre>
<p>功能：返回 n 的反正弦值。 n 必须是数值类型， 且取值在-1 到 1 之间， 函数结果从-π/2 到 π/2。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT asin(0);
</code></pre>
<p>查询结果为：0.000000000000000E+000</p>
<p><strong>4．函数 ATAN</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：ATAN(n)
</code></pre>
<p>功能：返回 n 的反正切值。n 必须是数值类型，取值可以是任意大小，函数结果从-π/2 到 π/2。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT atan(1);
</code></pre>
<p>查询结果为：7.853981633974483E-001</p>
<p><strong>5．函数 ATAN2</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：ATAN2(n, m)
</code></pre>
<p>功能：返回 n/m 的反正切值。n,m 必须是数值类型，取值可以是任意大小，函数结果从-π/2 到 π/2。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT atan2(0.2,0.3);
</code></pre>
<p>查询结果为：5.880026035475676E-001</p>
<p><strong>6．函数 CEIL</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：CEIL(n)
</code></pre>
<p>功能：返回大于等于 n 的最小整数。n 必须是数值类型。返回类型与 n 的类型相同。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT CEIL(15.6);
</code></pre>
<p>查询结果为：16</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT CEIL(-16.23);
</code></pre>
<p>查询结果为：-16</p>
<p><strong>7．函数 CEILING</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：CEILING(n)
</code></pre>
<p>功能：返回大于等于 n 的最小整数。等价于函数 CEIL(n)。</p>
<p><strong>8．函数 COS</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：COS(n)
</code></pre>
<p>功能：返回 n 的余弦值。n 必须是数值类型，是用弧度表示的值。将角度乘以 π/180，可以转换为弧度值。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT cos(14.78);
</code></pre>
<p>查询结果为：-5.994654261946543E-001</p>
<p><strong>9．函数 COSH</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：COSH(n)
</code></pre>
<p>功能：返回 n 的双曲余弦值。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT COSH(0)"Hyperbolic cosine of 0";
</code></pre>
<p>查询结果为：1.000000000000000E+000</p>
<p><strong>10．函数 COT</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：COT(n)
</code></pre>
<p>功能：返回 n 的余切值。n 必须是数值类型，是用弧度表示的值。将角度乘以 π/180，可以转换为弧度值。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT COT(20 * 3.1415926/180);
</code></pre>
<p>查询结果为：2.747477470356783E+000</p>
<p><strong>11．函数 DEGREES</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：DEGREES(n)
</code></pre>
<p>功能：返回弧度 n 对应的角度值，返回值类型与 n 的类型相同。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DEGREES(1.0);
</code></pre>
<p>查询结果为：5.729577951308238E+001</p>
<p><strong>12．函数 EXP</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：EXP(n)
</code></pre>
<p>功能：返回 e 的 n 次幂。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT EXP(4) "e to the 4th power";
</code></pre>
<p>查询结果为：5.459815003314424E+001</p>
<p><strong>13．函数 FLOOR</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：FLOOR(n)
</code></pre>
<p>功能：返回小于等于 n 的最大整数值。n 必须是数值类型。返回类型与 n 的类型相同。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT FLOOR(15.6);
</code></pre>
<p>查询结果为：15.0</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT FLOOR(-16.23);
</code></pre>
<p>查询结果为：-17.0</p>
<p><strong>14．函数 GREATEST</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：GREATEST(n {,n})
</code></pre>
<p>功能：求一个或多个数中最大的数。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT GREATEST(1.2,3.4,2.1);
</code></pre>
<p>查询结果为：3.4</p>
<p><strong>15．函数 GREAT</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：GREAT(n1,n2)
</code></pre>
<p>功能：求 n1、n2 中的最大的数。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT GREAT (2, 4);
</code></pre>
<p>查询结果为：4</p>
<p><strong>16．函数 LEAST</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：LEAST(n {,n})
</code></pre>
<p>功能：求一个或多个数中最小的一个。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT LEAST(1.2,3.4,2.1);
</code></pre>
<p>查询结果为：1.2</p>
<ol start="17">
<li><strong>函数 LN</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：LN(n)
</code></pre>
<p>功能：返回 n 的自然对数。n 为数值类型，且大于 0。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ln(95) "Natural log of 95";
</code></pre>
<p>查询结果为：4.553876891600541E+000</p>
<ol start="18">
<li><strong>函数 LOG</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：LOG(m[,n])
</code></pre>
<p>功能：返回数值 n 以数值 m 为底的对数；若参数 m 省略，返回 n 的自然对数。m,n 为数值类型，m 大于 0 且不为 1。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT LOG(10,100);
</code></pre>
<p>查询结果为：2.000000000000000E+000</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT LOG(95);
</code></pre>
<p>查询结果为：4.553876891600541E+000</p>
<ol start="19">
<li><strong>函数 LOG10</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：LOG10(n)
</code></pre>
<p>功能：返回数值 n 以 10 为底的对数。n 为数值类型，且大于 0。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT LOG10(100);
</code></pre>
<p>查询结果为：2.000000000000000E+000</p>
<ol start="20">
<li><strong>函数 MOD</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：MOD(m,n)
</code></pre>
<p>功能：返回 m 除以 n 的余数，当 n 为 0 时直接返回 m。m,n 为数值类型。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ROUND(NOWPRICE),mod(ROUND(NOWPRICE),10) FROM PRODUCTION.PRODUCT;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">ROUND(NOWPRICE) "MOD"(ROUND(NOWPRICE),10)
--------------- -------------------------
15              5
14              4
6               6
22              2
20              0
38              8
26              6
11              1
11              1
42              2
</code></pre>
<ol start="21">
<li><strong>函数 PI</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：PI()
</code></pre>
<p>功能：返回常数 π。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT PI();
</code></pre>
<p>查询结果为：3.141592653589793E+000</p>
<ol start="22">
<li><strong>函数 POWER/POWER2</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：POWER(m,n) / POWER2(m,n)
</code></pre>
<p>功能：返回 m 的 n 次幂。m,n 为数值类型，如果 m 为负数的话，n 必须为一个整数。其中 POWER()的返回值类型为 DOUBLE，POWER2()的返回值类型为 DECIMAL。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT POWER(3,2) "Raised";
</code></pre>
<p>查询结果为：9.000000000000000E+000</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT POWER(-3,3) "Raised";
</code></pre>
<p>查询结果为：-2.700000000000000E+001</p>
<ol start="23">
<li><strong>函数 RADIANS()</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：RADIANS(n)
</code></pre>
<p>功能：返回角度 n 对应的弧度值，返回值类型与 n 的类型相同。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT RADIANS(180.0);
</code></pre>
<p>查询结果为：3.141592653589790E+000</p>
<ol start="24">
<li><strong>函数 RAND()</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：RAND([n])
</code></pre>
<p>功能：返回一个[0,1]之间的随机浮点数。n 为数值类型，为生成随机数的种子，当 n 省略时，系统自动生成随机数种子。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT RAND();
</code></pre>
<p>查询结果为一个随机生成的小数</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT RAND(314);
</code></pre>
<p>查询结果为：3.247169408246101E-002</p>
<ol start="25">
<li><strong>函数 ROUND</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：ROUND(n [,m])
</code></pre>
<p>功能：返回四舍五入到小数点后面 m 位的 n 值。m 应为一个整数，缺省值为 0，m 为负整数则四舍五入到小数点的左边，m 为正整数则四舍五入到小数点的右边。若 m 为小数，系统将自动将其转换为整数。</p>
<p>例 1</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT NOWPRICE,ROUND(NOWPRICE) FROM PRODUCTION.PRODUCT;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">NOWPRICE ROUND(NOWPRICE)
-------- ---------------
15.2000  15
14.3000  14
6.1000   6
21.7000  22
20.0000  20
37.7000  38
25.5000  26
11.4000  11
11.1000  11
42.0000  42
</code></pre>
<p>例 2 对数字使用 ROUND 函数</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ROUND(15.163,-1);
</code></pre>
<p>查询结果为：20.0</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ROUND(15.163);
</code></pre>
<p>查询结果为：15</p>
<ol start="26">
<li><strong>函数 SIGN</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：SIGN(n)
</code></pre>
<p>功能：如果 n 为正数，SIGN(n)返回 1，如果 n 为负数，SIGN(n)返回-1，如果 n 为 0，SIGN(n)返回 0。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ROUND(NOWPRICE),SIGN(ROUND(NOWPRICE)-20) FROM PRODUCTION.PRODUCT;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">ROUND(NOWPRICE) SIGN(ROUND(NOWPRICE)-20)
--------------- ------------------------
15             	 -1
14             	 -1
6              	 -1
22                1
20             	  0
38             	  1
26             	  1
11             	 -1
11             	 -1
42             	  1
</code></pre>
<ol start="27">
<li><strong>函数 SIN</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：SIN(n)
</code></pre>
<p>功能：返回 n 的正弦值。n 必须是数值类型，是用弧度表示的值。将角度乘以 π/180，可以转换为弧度值。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT SIN(0);
</code></pre>
<p>查询结果为：0.000000000000000E+000</p>
<ol start="28">
<li><strong>函数 SINH</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：SINH(n)
</code></pre>
<p>功能：返回 n 的双曲正弦值。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT SINH(1);
</code></pre>
<p>查询结果为：1.175201193643801E+000</p>
<ol start="29">
<li><strong>函数 SQRT</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：SQRT(n)
</code></pre>
<p>功能：返回 n 的平方根。n 为数值类型，且大于等于 0。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ROUND(NOWPRICE),SQRT (ROUND(NOWPRICE)) FROM PRODUCTION.PRODUCT;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">ROUND(NOWPRICE) SQRT(ROUND(NOWPRICE))
--------------- -------------------------
15              3.872983346207417E+000
14              3.741657386773941E+000
6               2.449489742783178E+000
22              4.690415759823430E+000
20              4.472135954999580E+000
38              6.164414002968976E+000
26              5.099019513592785E+000
11              3.316624790355400E+000
11              3.316624790355400E+000
42              6.480740698407860E+000
</code></pre>
<ol start="30">
<li><strong>函数 TAN</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：TAN(n)
</code></pre>
<p>功能：返回 n 的正切值。n 必须是数值类型，是用弧度表示的值。将角度乘以 π/180，可以转换为弧度值。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TAN(45 *Pi()/180);
</code></pre>
<p>查询结果为：9.999999999999999E-001</p>
<ol start="31">
<li><strong>函数 TANH</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：TANH(n)
</code></pre>
<p>功能：返回 n 的双曲正切值。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TANH(0);
</code></pre>
<p>查询结果为：0.000000000000000E+000</p>
<ol start="32">
<li><strong>函数 TO_NUMBER</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：TO_NUMBER (char [,fmt])
</code></pre>
<p>功能：将 CHAR、VARCHAR、VARCHAR2 等类型的字符串转换为 DECIMAL 类型的数值。char 为待转换的字符串，fmt 为目标格式串。</p>
<p>若指定了 fmt 格式则转换后的 char 应该遵循相应的数字格式，若没有指定则直接转换成 DECIMAL。fmt 格式串一定要包容实际字符串的数据的格式，否则报错。无格式转换中只支持小数点和正负号。合法的 fmt 格式串字符如下表：</p>
<center>表8.1.1 合法的fmt格式串字符</center>
<table>
<thead>
<tr>
<th><strong>元素</strong></th>
<th><strong>例子</strong></th>
<th><strong>说明</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>,(逗号)</td>
<td>9,999</td>
<td>指定位置处返回逗号 注意：1.逗号不能开头 2.不能在小数点右边</td>
</tr>
<tr>
<td>.(小数点)</td>
<td>99.99</td>
<td>指定位置处返回小数点</td>
</tr>
<tr>
<td>$</td>
<td>$9999</td>
<td>美元符号开头</td>
</tr>
<tr>
<td>0</td>
<td>0999 9990</td>
<td>以 0 开头，返回指定字符的数字 以 0 结尾，返回指定字符的数字</td>
</tr>
<tr>
<td>9</td>
<td>9999</td>
<td>返回指定字符的数字，如果不够正号以空格代替， 负号以-代替，0 开头也以空格代替。</td>
</tr>
<tr>
<td>D</td>
<td>99D99</td>
<td>返回小数点的指定位置，默认为’.’,格式串中最多能有一个 D</td>
</tr>
<tr>
<td>G</td>
<td>9G999</td>
<td>返回指定位置处的组分隔符，可有多个，但不能出现在小数点右边</td>
</tr>
<tr>
<td>S</td>
<td>S9999 9999S</td>
<td>负值前面返回一个-号 正值前面不返回任何值 负值后面返回一个-号 正值后面不返回任何值 只能在格式串首尾出现</td>
</tr>
<tr>
<td>X</td>
<td>XXXX xxxx</td>
<td>返回指定字符的十六进制值，如果不是整数则四舍五入到整数， 如果为负数则返回错误。</td>
</tr>
<tr>
<td>C</td>
<td>C9999</td>
<td>返回指定字符的数字</td>
</tr>
<tr>
<td>B</td>
<td>B9999</td>
<td>返回指定字符的数字</td>
</tr>
</tbody>
</table>
<p>在设置兼容 Postgres（即设置 INI 参数 COMPATIBLE_MODE=7）后，fmt 格式串中指定了 
G，支持待转换字符串中不加千分号（逗号,），或千分号与 G 的位置不对应。当待转换字符串中的千分号与 fmt 格式串中的 G 
位置对应时，待转换字符串的数字位数不能多于格式串中 9 的位数。</p>
<p>例 1 使用 9、G、D 来转换字符串'2,222.22'。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_NUMBER('2,222.22', '9G999D99');
</code></pre>
<p>查询结果为：2222.22</p>
<p>例 2 使用 9、,(逗号)、.(小数点)来转换字符串'2,222.22'。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_NUMBER('2,222.22', '9,999.99');
</code></pre>
<p>查询结果为：2222.22</p>
<p>例 3 使用$、9、,(逗号)、.(小数点)来转换字符串'2,222.22'。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_NUMBER('$2,222.22','$9G999D99');
</code></pre>
<p>查询结果为：2222.22</p>
<p>例 4 使用 S、9 和.(小数点)来转换字符串'2,222.22'。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_NUMBER('-1212.12','S9999.99');
</code></pre>
<p>查询结果为：-1212.12</p>
<p>例 5 使用 XXXX 来转换字符串'1,234'。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_NUMBER('1,234','XXXX');
</code></pre>
<p>查询结果为：4660</p>
<p>例 6 无格式转换。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_NUMBER('-123.4');
</code></pre>
<p>查询结果为：-123.4</p>
<p>例 7  设置兼容 Postgres，转换字符串'12454.8-'，字符串中不含千分号</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_NUMBER('12454.8-', '99G999D9S');
</code></pre>
<p>查询结果为：-12454.8</p>
<p>例 8 设置兼容 Postgres，转换字符串'125454.8-'，字符串中千分号与 G 位置不对应</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_NUMBER('124,54.8-', '99G999D9S');
</code></pre>
<p>查询结果为：-12454.8</p>
<ol start="33">
<li><strong>函数 TRUNC</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：TRUNC(n [,m])
	或
	TRUNC(str [,m]) //str内只能为数字和'-'、'+'、'.'的组合
</code></pre>
<p>功能：将数值 n 的小数点后第 m 位以后的数全部截去。当数值参数 m 为负数时表示将数值 n 小数点前的第 m 
位后的所有数截去。当数值参数 m 省略时，m 缺省为 
0。支持对带符号的数值或字符串类型数值进行操作，例如：+11.2、'-8.9'。对字符串类型数值使用 trunc 函数，结果的有效数字为 16 
位；由于过程中会先将字符串类型数值转换为 double 类型，会发生精度丢失，截取后的第 16 位数字可能与预期有偏差。</p>
<p>特殊说明：当 m 为负数，其绝对值大于或等于 n 的整数位个数时，结果取 0；当 m 取正数，其值大于等于 n 的小数位个数时，结果取 n。</p>
<p>例 1 对 PRODUCTION.PRODUCT 表中的价格的平方根使用 TRUNC 函数</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT SQRT(NOWPRICE), TRUNC(SQRT (ROUND(NOWPRICE) ),1)FROM PRODUCTION.PRODUCT;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SQRT(NOWPRICE)            TRUNC(SQRT(ROUND(NOWPRICE)),1)
------------------------- ------------------------------
3.898717737923585E+000    3.8
3.781534080237808E+000    3.7
2.469817807045694E+000    2.4
4.658325879540846E+000    4.6
4.472135954999580E+000    4.4
6.140032573203500E+000    6.1
5.049752469181039E+000    5
3.376388603226827E+000    3.3
3.331666249791536E+000    3.3
6.480740698407860E+000    6.4
</code></pre>
<p>例 2 对数字使用 TRUNC 函数</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TRUNC(15.167,-1);
</code></pre>
<p>查询结果为：10.000</p>
<p>例 3  对带符号字符串型数值'-14.1111'使用 TRUNC 函数</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT   TRUNC('-14.1111',-1);
</code></pre>
<p>查询结果为：-1.000000000000000E+001</p>
<ol start="34">
<li><strong>函数 TRUNCATE</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：TRUNCATE(n [,m])
	或
	TRUNCATE(str [,m]) //str内只能为数字和'-'、'+'、'.'的组合
</code></pre>
<p>功能：等价于函数 TRUNC。将数值 n 的小数点后第 m 位以后的数全部截去。当数值参数 m 为负数时表示将数值 n 小数点前的第 m 
位后的所有数截去。当数值参数 m 省略时，m 默认为 0。支持对带符号的数值或字符串类型数值进行操作，例如：+11.2、'-8.9'。</p>
<p>特殊说明：当 m 为负数，其绝对值大于或等于 n 的整数位个数时，结果取 0；当 m 取正数，其值大于等于 n 的小数位个数时，结果取 n。</p>
<ol start="35">
<li><strong>函数 TO_CHAR</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：TO_CHAR(n [, fmt [, 'nls' ] ])
</code></pre>
<p><strong>图例</strong></p>
<p>函数 TO_CHAR（数值类型）</p>
<p><img src="%E5%87%BD%E6%95%B0%20%E8%BE%BE%E6%A2%A6%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3_files/%25E5%2587%25BD%25E6%2595%25B0TO_CHAR%25EF%25BC%2588%25E6%2595%25B0%25E5%2580%25BC%25E7%25B1%25B.jpg" alt="函数 TO_CHAR（数值类型）"></p>
<p><strong>语句功能：</strong></p>
<p>将数值类型的数据转化为 VARCHAR 类型输出。其中：n 为数值类型的数据；fmt 为目标格式串。DM 的缺省格式为数字的字符串本身。如 SELECT<br>
TO_CHAR(11.18)，查询结果为：11.18。</p>
<p>fmt 中包含的格式控制符主要可以分为三类，具体如下如下：</p>
<ol>
<li>主体标记；</li>
<li>前缀标记；</li>
<li>后缀标记。</li>
</ol>
<p>其中主体标记包含的标记如表 8.1.2 所示。</p>
<center>表8.1.2 主体标记</center>
<table>
<thead>
<tr>
<th><strong>格式控制符</strong></th>
<th><strong>说明</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>逗号（,）</td>
<td>逗号只能出现在整数部分的任意位置，如 to_char(1234, '9,99,9')， 结果为 1,23,4</td>
</tr>
<tr>
<td>点号（.）</td>
<td>作为小数点分隔符，不足的位数由后面的掩码决定</td>
</tr>
<tr>
<td>0</td>
<td>表示位数不足的时候用 0 填充，如 to_char(1234, '09999.00')， 结果为 01234.00</td>
</tr>
<tr>
<td>9</td>
<td>表示位数不足的时候用空格填充，如 to_char(1234, '9999,99'), 结果为’ 12,34’</td>
</tr>
<tr>
<td>D</td>
<td>作用同点号</td>
</tr>
<tr>
<td>G</td>
<td>作用同逗号</td>
</tr>
<tr>
<td>X</td>
<td>表示 16 进制</td>
</tr>
<tr>
<td>V</td>
<td>表示 10 的 n 次方</td>
</tr>
<tr>
<td>RN</td>
<td>转换为大写的罗马数字</td>
</tr>
<tr>
<td>rn</td>
<td>转换为小写的罗马数字</td>
</tr>
</tbody>
</table>
<p>其中前缀标记包含的标记如表 8.1.3 所示。</p>
<center>表8.1.3 前缀标记</center>
<table>
<thead>
<tr>
<th><strong>格式控制符</strong></th>
<th><strong>说明</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>FM</td>
<td>去掉前置空格</td>
</tr>
<tr>
<td>$</td>
<td>美元符号。只能放在掩码最前面，且只能有一个</td>
</tr>
<tr>
<td>B</td>
<td>当整数部分的值为零时，返回空格</td>
</tr>
<tr>
<td>S</td>
<td>表示正负号， 如 to_char(1234, 'S9999')结果为 +1234， to_char(-1234,'S9999') 结果为-1234</td>
</tr>
<tr>
<td>TM9</td>
<td>64 个字符内返回原数值，超过则返回科学计数值</td>
</tr>
<tr>
<td>TME</td>
<td>返回科学计数值</td>
</tr>
<tr>
<td>C</td>
<td>当前货币名称缩写</td>
</tr>
<tr>
<td>L</td>
<td>当前货币符号</td>
</tr>
</tbody>
</table>
<p>其中后缀标记包含的标记如表 8.1.4 所示。</p>
<center>表8.1.4后缀标记</center>
<table>
<thead>
<tr>
<th><strong>格式控制符</strong></th>
<th><strong>说明</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>EEEE</td>
<td>科学计数符</td>
</tr>
<tr>
<td>MI</td>
<td>如'9999MI'，如果是负数，在尾部加上负号(-)； 如果是正数，则尾部加上空格</td>
</tr>
<tr>
<td>PR</td>
<td>将负数放到尖括号&lt;&gt;中</td>
</tr>
<tr>
<td>C</td>
<td>当前货币名称缩写</td>
</tr>
<tr>
<td>L</td>
<td>当前货币符号</td>
</tr>
<tr>
<td>S</td>
<td>表示正负号</td>
</tr>
</tbody>
</table>
<p>这些标记的组合规则主要包括以下几个：</p>
<ol>
<li>前缀之间的冲突；</li>
<li>后缀与前缀之间的冲突；</li>
<li>后缀之间的冲突。</li>
</ol>
<p>其中，前缀之间的冲突如表 8.1.5 所示。</p>
<center>表8.1.5 前缀之间的冲突</center>
<table>
<thead>
<tr>
<th><strong>前缀</strong></th>
<th><strong>与指定前缀存在冲突的前缀</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>$</td>
<td>$, C, L</td>
</tr>
<tr>
<td>B</td>
<td>B</td>
</tr>
<tr>
<td>S</td>
<td>$, B, S, C, L</td>
</tr>
<tr>
<td>TM9</td>
<td>$, B, S</td>
</tr>
<tr>
<td>TME</td>
<td>$, B, S</td>
</tr>
<tr>
<td>FM</td>
<td>$, B, TM9, TME</td>
</tr>
<tr>
<td>C</td>
<td>C, L,$</td>
</tr>
<tr>
<td>L</td>
<td>C, L,$</td>
</tr>
</tbody>
</table>
<p>注：前缀之间的冲突指上表中第二列的前缀不能放在第一列的前缀之前。</p>
<p>如当前缀为 S 时，前缀中不能还有$、 B、S、 C、L 标记，即$S、BS、SS、CS、LS 不能作为前缀。类似，对于前缀 L、则 CL、LL、$L 不能作为前缀。</p>
<p>后缀与前缀之间的冲突如表 8.1.6 所示。</p>
<center>表8.1.6 后缀与前缀之间的冲突</center>
<table>
<thead>
<tr>
<th><strong>后缀</strong></th>
<th><strong>与指定后缀存在冲突的前缀</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>L</td>
<td>L, C,$</td>
</tr>
<tr>
<td>C</td>
<td>L, C,$</td>
</tr>
<tr>
<td>$</td>
<td>$, C, L, MI, PR</td>
</tr>
<tr>
<td>S</td>
<td>S</td>
</tr>
<tr>
<td>PR</td>
<td>S</td>
</tr>
<tr>
<td>MI</td>
<td>S</td>
</tr>
</tbody>
</table>
<p>如当后缀为 C 时，前缀中不能还有 L、C、$等标记，如格式’L999C’等。</p>
<p>后缀之间的冲突如表 8.1.7 所示。</p>
<center>表8.1.7 后缀之间的冲突</center>
<table>
<thead>
<tr>
<th><strong>后缀</strong></th>
<th><strong>与指定后缀存在冲突的后缀</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>EEEE</td>
<td>S, EEEE, MI, PR</td>
</tr>
<tr>
<td>S</td>
<td>S, MI, PR</td>
</tr>
<tr>
<td>PR</td>
<td>S, MI, PR</td>
</tr>
<tr>
<td>MI</td>
<td>S, MI, PR</td>
</tr>
<tr>
<td>C</td>
<td>C, L, MI, PR, S, EEEE,$</td>
</tr>
<tr>
<td>L</td>
<td>C, L, MI, PR, S, EEEE,$</td>
</tr>
<tr>
<td>$</td>
<td>$, MI, PR, S, C, L</td>
</tr>
</tbody>
</table>
<p>注：后缀之间的冲突指上表中第二列的后缀不能放在第一列的后缀之前。</p>
<p>如当后缀为 L 时，后缀中不能还有 C、L、MI、PR、S、EEEE、￥ 等标记，即后缀 CL、LL、MIL、PRL、SL、EEEEL 不能在格式字符串中出现。</p>
<p>nls 用来指定以下数字格式元素返回的字符：</p>
<ol>
<li>小数点字符；</li>
<li>组分隔符；</li>
<li>本地货币符号。</li>
<li>国际货币符号。</li>
</ol>
<p>这个参数可以有这种形式：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">'NLS_NUMERIC_CHARACTERS = ''dg''

NLS_CURRENCY = ''text''

NLS_ISO_CURRENCY = territory '
</code></pre>
<p>其中：NLS_NUMERIC_CHARACTERS 参数指定字符 D 和 G 
代表小数点字符和组分隔，必须用引号引起来。NLS_NUMERIC_CHARACTERS 
串的长度只能是两个，并且这两个字符的不能相同；NLS_CURRENCY 指定的字符串用来代替本地货币符号，仅当 FMT 的前缀中有 L 
时有效，不能超过 10 个字符的长度。nls 参数字符串如果包含空格，要用单引号括起来；如果包含单引号，也要用单引号括起来，以对单引号进行转义。</p>
<p>NLS_ISO_CURRENCY 用来指定的字符串用来代替国际货币符号，仅当 FMT 的前缀中有 C 时有效，取值只能是表 8.1.8 中的值，得到的结果是缩写的内容。</p>
<center>表8.1.8 NLS_ISO_CURRENCY的值及缩写形式</center>
<table>
<thead>
<tr>
<th><strong>NLS_TERRITORY</strong></th>
<th><strong>缩写</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>CHINA</td>
<td>CNY</td>
</tr>
<tr>
<td>TAIWAN</td>
<td>TWD</td>
</tr>
<tr>
<td>AMERICA</td>
<td>USD</td>
</tr>
<tr>
<td>UNITED KINGDOM</td>
<td>GBP</td>
</tr>
<tr>
<td>CANADA</td>
<td>CAD</td>
</tr>
<tr>
<td>FRANCE</td>
<td>EUR</td>
</tr>
<tr>
<td>GERMANY</td>
<td>EUR</td>
</tr>
<tr>
<td>ITALY</td>
<td>EUR</td>
</tr>
<tr>
<td>JAPAN</td>
<td>JPY</td>
</tr>
<tr>
<td>KOREA</td>
<td>KRW</td>
</tr>
<tr>
<td>BRAZIL</td>
<td>BRL</td>
</tr>
<tr>
<td>PORTUGAL</td>
<td>EUR</td>
</tr>
</tbody>
</table>
<p><strong>举例说明</strong></p>
<p>例 1</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_CHAR('01110' + 1);
</code></pre>
<p>查询结果为：1111</p>
<p>例 2</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_CHAR(-10000,'L99G999D99MI') "Amount";
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">Amount
------------
￥10,000.00-
</code></pre>
<p>例 3</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">CREATE TABLE T_INT (C1 INT);
INSERT INTO T_INT VALUES(456),(0),(213);
SELECT TO_CHAR(C1, 'L999D99MI',
   'NLS_NUMERIC_CHARACTERS = '';:''
   NLS_CURRENCY = ''AusDollars'' ') FROM T_INT;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">AusDollars456;00
   AusDollars;00
AusDollars213;00
</code></pre>
<p>例 4</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);"> SELECT TO_CHAR(C1, 'C999D99MI',
 'NLS_NUMERIC_CHARACTERS = '';:''
 NLS_CURRENCY = ''AusDollars'' 
 NLS_ISO_CURRENCY = ''TAIWAN'' ') FROM T_INT;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">TWD456;00
   TWD;00
TWD213;00
</code></pre>
<ol start="36">
<li><strong>函数 BITAND</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：BITAND(n1, n2)
</code></pre>
<p>功能：返回两个数值型数值 n1 和 n2 按位进行 AND 运算后的结果。</p>
<p>特殊说明：当 n1 或 n2 是小数时，去掉小数点后做 AND 运算；如果 n1 或 n2 有一个是 0，则结果是 0；如果 n1 或 n2 有一个是 null，则结果是 null。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT BITAND(-4, -5);
</code></pre>
<p>查询结果为：-8</p>
<p>**37. ** <strong>函数 NANVL</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：NANVL(n1, n2)
</code></pre>
<p>功能：有一个参数为空则返回空，否则返回 n1 的值。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT NANVL(NULL, 12.34)FROM DUAL;
</code></pre>
<p>查询结果为：NULL</p>
<p>**38. ** <strong>函数 REMAINDER</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：REMAINDER(n1, n2)
</code></pre>
<p>功能：计算 n1 除 n2 的余数，余数取绝对值更小的那一个。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT REMAINDER(11,4)FROM DUAL;
</code></pre>
<p>查询结果为：-1.000000000000000E+000</p>
<p><strong>39.</strong> <strong>函数 TO_BINARY_FLOAT</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：TO_BINARY_FLOAT(n)
</code></pre>
<p>功能：将 number、real 或 double 类型数值转换成 binary float 类型。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_BINARY_FLOAT(12) FROM DUAL;
</code></pre>
<p>查询结果为：1.2000000E+001</p>
<p><strong>40.</strong> <strong>函数 TO_BINARY_DOUBLE</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：TO_BINARY_DOUBLE(n)
</code></pre>
<p>功能：将 number、real 或 float 类型数值转换成 binary double 类型。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_BINARY_DOUBLE(12) FROM DUAL;
</code></pre>
<p>查询结果为：1.200000000000000E+001</p>
<h2 id="8-2-字符串函数" class="article-heading" style="position: relative;">8.2 字符串函数<a class="article-anchor" href="#8.2 字符串函数" aria-hidden="true"></a><div style="position: absolute; top: -100px;" id="8.2 字符串函数"></div></h2>
<p>字符串函数一般接受字符类型(包括 CHAR 和 VARCHAR)和数值类型的参数，返回值一般是字符类型或是数值类型。</p>
<ol>
<li><strong>函数 ASCII</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：ASCII(char)
</code></pre>
<p>功能：返回字符 char 对应的整数（ASCII 值）。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ASCII('B') ,ASCII('中');
</code></pre>
<p>查询结果为：66 54992</p>
<ol start="2">
<li><strong>函数 ASCIISTR</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：ASCIISTR (char)
</code></pre>
<p>功能：将字符串 char 中，非 ASCII 的字符转成\XXXX(UTF-16)格式，ASCII 字符保持不变。</p>
<p>例 非 unicode 库下，执行如下操作：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT CHr(54992),ASCIISTR('中') ,ASCIISTR(CHr(54992));
</code></pre>
<p>查询结果为：中 \4E2D \4E2D</p>
<ol start="3">
<li><strong>函数 BIT_LENGTH</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：BIT_LENGTH(char)
</code></pre>
<p>功能：返回字符串的位(bit)长度。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT BIT_LENGTH('ab');
</code></pre>
<p>查询结果为：16</p>
<ol start="4">
<li><strong>函数 CHAR</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：CHAR(n)
</code></pre>
<p>功能：返回整数 n 对应的字符。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT CHAR(66),CHAR(67),CHAR(68) , CHAR(54992);
</code></pre>
<p>查询结果为：B C D 中</p>
<ol start="5">
<li><strong>函数 CHAR_LENGTH / CHARACTER_LENGTH</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：CHAR_LENGTH(char) 或 CHARACTER_LENGTH(char)
</code></pre>
<p>功能：返回字符串 char 的长度，以字符作为计算单位，一个汉字作为一个字符计算。</p>
<p>字符串尾部的空格也计数。</p>
<p>例 1</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT NAME,CHAR_LENGTH(TRIM(BOTH ' ' FROM NAME))
FROM PRODUCTION.PRODUCT;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">NAME                              CHAR_LENGTH(TRIM(BOTH''FROMNAME))
---------------------------  ---------------------------------
红楼梦                             3
水浒传                             3
老人与海                           4
射雕英雄传(全四册)                 10
鲁迅文集(小说、散文、杂文)全两册     17
长征                              2
数据结构(C语言版)(附光盘)           15
工作中无小事                       6
突破英文基础词汇                    8
噼里啪啦丛书(全7册)                 11
</code></pre>
<p>例 2</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT CHAR_LENGTH('我们');
</code></pre>
<p>查询结果为：2</p>
<ol start="6">
<li><strong>函数 CHR</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：CHR(n)
</code></pre>
<p>功能：返回整数 n 对应的字符。等价于 CHAR(n)。</p>
<ol start="7">
<li><strong>函数 CONCAT</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：CONCAT(char1,char2,char3…)
</code></pre>
<p>功能：返回多个字符串顺序联结成的一个字符串，该函数等价于连接符||。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT PRODUCTID,NAME, PUBLISHER, CONCAT(PRODUCTID,NAME,PUBLISHER) FROM PRODUCTION.PRODUCT;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">PRODUCTID NAME          	    PUBLISHER CONCAT(PRODUCTID,NAME,PUBLISHER)
--------- -------------------  --------- ------------------------------
1         红楼梦        		中华书局	      1红楼梦中华书局
2         水浒传        		中华书局	      2水浒传中华书局
3         老人与海      	   上海出版社         3老人与海上海出版社
4         射雕英雄传(全四册)     广州出版社        4射雕英雄传(全四册)广州出版社
5         鲁迅文集(小说、散文、杂文)全两册	        5鲁迅文集(小说、散文、杂文)全两册
6         长征                 人民文学出版社     6长征人民文学出版社
7         数据结构(C语言版)(附光盘)  清华大学出版社 7数据结构(C语言版)(附光盘)清华大学出版社
8         工作中无小事          机械工业出版社      8工作中无小事机械工业出版社
9         突破英文基础词汇      外语教学与研究出版社 9突破英文基础词汇外语教学与研究出版社
10        噼里啪啦丛书(全7册)   21世纪出版社        10噼里啪啦丛书(全7册)21世纪出版社
</code></pre>
<ol start="8">
<li><strong>CONCAT_WS</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：DIFFERENCE(char1,char2)
</code></pre>
<p>功能：比较两个字符串的 SOUNDEX 值之间的差异，返回两个 SOUNDEX 值串同一位置出现相同字符的个数。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DIFFERENCE('she', 'he');
</code></pre>
<p>查询结果为：3</p>
<ol start="9">
<li><strong>函数 INITCAP</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：INITCAP(char)
</code></pre>
<p>功能：返回句子字符串中，每一个单词的第一个字母改为大写，其他字母改为小写。单词用空格分隔，不是字母的字符不受影响。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT INITCAP('hello world');
</code></pre>
<p>查询结果为：Hello World</p>
<ol start="10">
<li><strong>函数 INS</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法： INS(char1,begin,n,char2)
</code></pre>
<p>功能：删除在字符串 char1 中以 begin 参数所指位置开始的 n 个字符,<br>
再把 char2 插入到 char1 串的 begin 所指位置。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT INS ('abcdefg',1,3, 'kkk') ;
</code></pre>
<p>查询结果为：kkkdefg</p>
<ol start="11">
<li><strong>函数 INSERT / INSSTR</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法： INSERT(char1,n1,n2,char2) / INSSTR(char1,n1,n2,char2)
</code></pre>
<p>功能：将字符串 char1 从 n1 的位置开始删除 n2 个字符，并将 char2 插入到 char1 中 n1 的位置。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT INSERT('That is a cake',2,3, 'his') ;
</code></pre>
<p>查询结果为：This is a cake</p>
<ol start="12">
<li><strong>函数 INSTR</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：INSTR(char1,char2[,n[,m]])
</code></pre>
<p>功能：返回 char1 中包含 char2 的特定位置。INSTR 从 char1 的左边开始搜索，开始位置是 n，如果 n 
为负数，则搜索从 char1 的最右边开始，当搜索到 char2 的第 m 次出现时，返回所在位置。n 和 m 的缺省值都为 1，即返回 
char1 中第一次出现 char2 的位置，这时与 POSITION 相类似。如果从 n 开始没有找到第 m 次出现的 char2，则返回 
0。n 和 m 以字符作为计算单位，一个西文字符和一个汉字都作为一个字符计算。</p>
<p>此函数中 char1 和 char2 可以是 CHAR 或 VARCHAR 数据类型，n 和 m 是数值类型。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT INSTR('CORPORATE FLOOR', 'OR', 3, 2) "Instring";
</code></pre>
<p>查询结果为：14</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT INSTR('我们的计算机', '计算机',1,1);
</code></pre>
<p>查询结果为：4</p>
<ol start="13">
<li><strong>函数 INSTRB</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：INSTRB(char1,char2[,n[,m]])
</code></pre>
<p>功能：返回从 char1 的第 n 个字节开始查找字符串 char2 的第 m 次出现的位置。INSTRB 从 char1 
的左边开始搜索，开始位置是 n，如果 n 为负数，则搜索从 char1 的最右边开始，当搜索到 char2 的第 m 次出现时，返回所在位置。n
 和 m 的缺省值都为 1，即返回 char1 中第一次出现 char2 的位置，这时与 POSITION 相类似。如果从 n 开始没有找到第 m
 次出现的 char2，则返回 0。以字节作为计算单位，一个汉字根据编码类型不同可能占据 2 个或多个字节。</p>
<p>此函数中 char1 和 char2 可以是 CHAR 或 VARCHAR 数据类型，n 和 m 是数值类型。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT INSTRB('CORPORATE FLOOR', 'OR', 3, 2) "Instring";
</code></pre>
<p>查询结果为：14</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT INSTRB('我们的计算机', '计算机',1,1);
</code></pre>
<p>查询结果为：7</p>
<ol start="14">
<li><strong>函数 LCASE</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：LCASE(char)
</code></pre>
<p>功能：返回字符串中，所有字母改为小写，不是字母的字符不受影响。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT LCASE('ABC');
</code></pre>
<p>查询结果为：abc</p>
<ol start="15">
<li><strong>函数 LEFT / LEFTSTR</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：LEFT(char,n) / LEFTSTR(char,n)
</code></pre>
<p>功能：返回字符串最左边的 n 个字符组成的字符串。</p>
<p>例 1</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT NAME,LEFT(NAME,2) FROM PRODUCTION.PRODUCT;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">NAME                             "LEFT"(NAME,2)
-------------------------------- --------------
长征                             长征
工作中无小事                      工作
红楼梦                           红楼
老人与海                         老人
鲁迅文集(小说、散文、杂文)全两册    鲁迅
射雕英雄传(全四册)                射雕
数据结构(C语言版)(附光盘)          数据
水浒传                           水浒
突破英文基础词汇                  突破
噼里啪啦丛书(全7册)               噼里
</code></pre>
<p>例 2</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT LEFT ('computer science',10);
</code></pre>
<p>查询结果为：computer s</p>
<ol start="16">
<li><strong>函数 LEN</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：LEN(char)
</code></pre>
<p>功能：返回给定字符串表达式的字符(而不是字节)个数，其中不包含尾随空格。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT LEN ('hi,你好□□');
</code></pre>
<p>查询结果为：5</p>
<p>说明：□ 表示空格字符</p>
<ol start="17">
<li><strong>函数 LENGTH</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：LENGTH(char)
</code></pre>
<p>功能：返回给定字符串表达式的字符(而不是字节)个数，其中包含尾随空格。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT LENGTH('hi,你好□□');
</code></pre>
<p>查询结果为：7</p>
<p>说明：□ 表示空格字符</p>
<ol start="18">
<li><strong>函数 OCTET_LENGTH</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：OCTET_LENGTH(char)
</code></pre>
<p>功能：返回字符串 char 的长度，以字节作为计算单位，一个汉字根据编码类型不同可能占据 2 个或多个字节。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT OCTET_LENGTH('大家好') "Length in bytes";
</code></pre>
<p>查询结果为：6</p>
<ol start="19">
<li><strong>函数 LOCATE</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：LOCATE(char1,char2[,n])
</code></pre>
<p>功能：返回字符串 char1 在 char2 中从位置 n 开始首次出现的位置，如果参数 n 省略或为负数，则从 char2 的最左边开始找。其中参数 char2 可以为 CLOB/TEXT 数据类型，支持的最大长度为 2G-1。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT LOCATE('man', 'The manager is a man', 10);
</code></pre>
<p>查询结果为：18</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT LOCATE('man', 'The manager is a man');
</code></pre>
<p>查询结果为：5</p>
<ol start="20">
<li><strong>函数 LOWER</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：LOWER(char)
</code></pre>
<p>功能：将字符串中的所有大写字母改为小写，其他字符不变。等价于 LCASE(char)。</p>
<ol start="21">
<li><strong>函数 LPAD</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：LPAD(char1,length[,char2])
</code></pre>
<p>功能：在字符串 char1 的左边，依次加入 char2 中的字符，直到总长度达到 length，返回增加后的字符串。如果未指定 
char2，缺省值为空格。length 为正整数。如果 length 的长度比 char1 大，则返回 char2 
的前(length-length(char1))个字符 +char1，总长度为 length。如果 length 比 char1 小，则返回 
char1 的前 lengh 个字符。长度以字节作为计算单位，一个汉字作为二个字节计算。</p>
<p>注：若 length 为小于或等于零的整数，则返回 NULL。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT LPAD(LPAD('FX',19,'Teacher'),22,'BIG') "LPAD example";
</code></pre>
<p>查询结果为：BIGTeacherTeacherTeaFX</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT LPAD('计算机',8, '我们的');
</code></pre>
<p>查询结果为：我计算机</p>
<ol start="22">
<li><strong>函数 LTRIM</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：LTRIM(str[,set])
</code></pre>
<p>功能：str 支持字符串类型和 CLOB 类型，CLOB 的最大长度由 INI 参数 CLOB_MAX_IFUN_LEN 指定。删除字符串
 str 左边起，出现在 set 中的任何字符，当遇到不在 set 中的第一个字符时返回结果。返回值类型与 str 类型保持一致。set 
缺省为空格。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT LTRIM('xyyxxxXxyLAST WORD', 'xy') "LTRIM example";
</code></pre>
<p>查询结果为：XxyLAST WORD</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT LTRIM('我们的计算机', '我们');
</code></pre>
<p>查询结果为：的计算机</p>
<ol start="23">
<li><strong>函数 POSITION</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：POSITION(char1 IN char2) / POSITION(char1, char2)
</code></pre>
<p>功能：返回在 char2 串中第一次出现的 char1 的位置，如果 char1 是一个零长度的字符串，POSITION 返回 1，如果 
char2 中 char1 没有出现，则返回 0。以字节作为计算单位，一个汉字根据编码类型不同可能占据 2 个或多个字节。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT POSITION('数' IN '达梦数据库');
</code></pre>
<p>查询结果为：5</p>
<ol start="24">
<li><strong>函数 REPEAT / REPEATSTR</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：REPEAT(char,n) / REPEATSTR(char,n)
</code></pre>
<p>功能：返回将字符串重复 n 次形成的字符串。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT REPEAT ('Hello ',3);
</code></pre>
<p>查询结果为：Hello Hello Hello</p>
<ol start="25">
<li><strong>函数 REPLACE</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：REPLACE(str, search [,replace])
</code></pre>
<p>功能：str 为 CHAR、CLOB 和 TEXT 类型，search 和 replace 为字符串类型。在 str 中找到字符串 search，替换成 replace。若 replace 为空，则在 str 中删除所有 search。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT NAME,REPLACE(NAME, '地址', '地点') FROM PERSON.ADDRESS_TYPE;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">NAME     REPLACE(NAME,'地址','地点')
-------- ---------------------------
发货地址  发货地点
送货地址  送货地点
家庭地址  家庭地点
公司地址  公司地点
</code></pre>
<ol start="26">
<li><strong>函数 REPLICATE</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：REPLICATE(char,times)
</code></pre>
<p>功能：把字符串 char 自己复制 times 份。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT REPLICATE('aaa',3);
</code></pre>
<p>查询结果为：aaaaaaaaa</p>
<ol start="27">
<li><strong>函数 REVERSE</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：reverse(char)
</code></pre>
<p>功能：将输入字符串的字符顺序反转后返回。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT REVERSE('abcd');
</code></pre>
<p>查询结果：dcba</p>
<ol start="28">
<li><strong>函数 RIGHT / RIGHTSTR</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：RIGHT(char,n) / RIGHTSTR(char,n)
</code></pre>
<p>功能：返回字符串最右边 n 个字符组成的字符串。</p>
<p>例 1 对表 PERSON.ADDRESS_TYPE 的 NAME 列使用 RIGHT 函数</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT NAME, RIGHT (NAME,2) FROM PERSON.ADDRESS_TYPE;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">NAME     "RIGHT"(NAME,2)
-------- ---------------
发货地址  地址
送货地址  地址
家庭地址  地址
公司地址  地址
</code></pre>
<p>例 2 对字符使用 RIGHT 函数</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT RIGHTSTR('computer',3);
</code></pre>
<p>查询结果为：ter</p>
<ol start="29">
<li><strong>函数 RPAD</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：RPAD(char1,length[,char2])
</code></pre>
<p>功能：返回值为字符串 char1 右边增加 char2，总长度达到 length 的字符串，length 为正整数。如果未指定 
char2，缺省值为空格。如果 length 的长度比 char1 大，则返回 char1+char2 
的前(length-length(char1))个字符，总长度为 length。如果 length 比 char1 小，则返回 char1 的前
 lengh 个字符。长度以字节作为计算单位，一个汉字作为二个字节计算。</p>
<p>注：若 length 为小于或等于零的整数，则返回 null。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT RPAD('',11, 'BigBig') "RPAD example";
</code></pre>
<p>查询结果为：FUXINBigBig</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT RPAD('计算机',8, '我们的');
</code></pre>
<p>查询结果为：计算机我</p>
<ol start="30">
<li><strong>函数 RTRIM</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：RTRIM(str[,set])
</code></pre>
<p>功能：str 支持字符串类型和 CLOB 类型，CLOB 的最大长度由 INI 参数 CLOB_MAX_IFUN_LEN 指定。删除字符串
 str 右边起出现的 set 中的任何字符，当遇到不在 set 中的第一个字符时返回结果。返回值类型与 str 类型保持一致。set 
缺省为空格。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT RTRIM('TURNERyXxxxyyyxy', 'xy') "RTRIM e.g.";
</code></pre>
<p>查询结果为：TURNERyX</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT RTRIM('我们的计算机','我计算机');
</code></pre>
<p>查询结果为：我们的</p>
<ol start="31">
<li><strong>函数 SOUNDEX</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：SOUNDEX(char)
</code></pre>
<p>功能：返回一个表示英文字符串发音的字符串，由四个字符构成，第一个为英文字符，后三个为数字。NULL 返回 NULL，当 INI 参数 
COMPATIBLE_MODE=0 或 2 时，将忽略原字符串中所有非英文字符，若原字符串为空串或者不存在英文字符则返回 NULL；当 
COMPATIBLE_MODE=3 时，遇到非英文字符则不再处理后续字符，若原字符串为空串或者不存在英文字符则返回"0000"。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT SOUNDEX('Hello');
</code></pre>
<p>查询结果为：H400</p>
<ol start="32">
<li><strong>函数 SPACE</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：SPACE(n)
</code></pre>
<p>功能：返回一个包含 n 个空格的字符串。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT SPACE(5);
</code></pre>
<p>查询结果为：□□□□□</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT CONCAT(CONCAT('Hello',SPACE(3)), 'world');
</code></pre>
<p>查询结果为：Hello□□□world</p>
<p>说明：□ 表示空格字符</p>
<ol start="33">
<li><strong>函数 STRPOSDEC</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：STRPOSDEC(char)
</code></pre>
<p>功能：把字符串 char 中最后一个字节的值减一。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT STRPOSDEC('hello');
</code></pre>
<p>查询结果为：helln</p>
<ol start="34">
<li><strong>函数 STRPOSDEC</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：STRPOSDEC(char,pos)
</code></pre>
<p>功能：把字符串 char 中指定位置 pos 上的字节的值减一。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT STRPOSDEC('hello',3);
</code></pre>
<p>查询结果为：heklo</p>
<ol start="35">
<li><strong>函数 STRPOSINC</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：STRPOSINC(char)
</code></pre>
<p>功能：把字符串 char 中最后一个字节的值加一。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT STRPOSINC ('hello');
</code></pre>
<p>查询结果为：hellp</p>
<ol start="36">
<li><strong>函数 STRPOSINC</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：STRPOSINC (char,pos)
</code></pre>
<p>功能：把字符串 char 中指定位置 pos 上的字节的值加一。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT STRPOSINC ('hello',3);
</code></pre>
<p>查询结果为：hemlo</p>
<ol start="37">
<li><strong>函数 STUFF</strong></li>
</ol>
<p>语法：STUFF(char1,begin,n,char2)</p>
<p>功能：删除在字符串 char1 中以 begin 参数所指位置开始的 n 个字符，再把 char2 插入到 char1 的 begin 所指位置。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT STUFF('ABCDEFG',1,3, 'OOO');
</code></pre>
<p>查询结果为：OOODEFG</p>
<ol start="38">
<li><strong>函数 SUBSTR/SUBSTRING</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：SUBSTR(char[,m[,n]]) / SUBSTRING(char[ from m [ for n ]])
</code></pre>
<p>功能：返回 char 中从字符位置 m 开始的 n 个字符。若 m 为 0，则把 m 就当作 1 对待。若 m 
为正数，则返回的字符串是从左边到右边计算的；反之，返回的字符是从 char 的结尾向左边进行计算的。如果没有给出 n，则返回 char 
中从字符位置 m 开始的后续子串。如果 n 小于 0，则返回 NULL。如果 m 和 n 都没有给出，返回 
char。函数以字符作为计算单位，一个西文字符和一个汉字都作为一个字符计算。</p>
<p>例 1 对 PRODUCTION.PRODUCT 表中的 NAME 列使用 SUBSTRING 函数</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT NAME,SUBSTRING(NAME FROM 3 FOR 2) FROM PRODUCTION.PRODUCT;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">NAME                          SUBSTRING(NAMEFROM3FOR2)
---------------------------  ------------------------
红楼梦                         梦
水浒传                         传
老人与海                       与海
射雕英雄传(全四册)              英雄
鲁迅文集(小说、散文、杂文)全两册  文集
长征
数据结构(C语言版)(附光盘)        结构
工作中无小事                    中无
突破英文基础词汇              	英文
噼里啪啦丛书(全7册)             啪啦
</code></pre>
<p>例 2 对字符串使用 SUBSTR 函数</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT SUBSTR('我们的计算机',3,4) "Subs";
</code></pre>
<p>查询结果为：的计算机</p>
<ol start="39">
<li><strong>函数 SUBSTRB</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：SUBSTRB(string,m[,n])
</code></pre>
<p>功能：返回 char 中从第 m 字节位置开始的 n 个字节长度的字符串。若 m 为 0，则 m 就当作 1 对待。若 m 
为正数，则返回的字符串是从左边到右边计算的；若 m 为负数，返回的字符是从 char 的结尾向左边进行计算的。若 m 
大于字符串的长度，则返回空串。如果没有 n，则缺省的长度为整个字符串的长度。如果 n 等于 0，返回空串；如果 n 小于 0，则返回 NULL。</p>
<p>这里假设字符串 char 的长度为 len，如果 n 的值很大，超过 len – m，则返回的子串的长度为 len – m。</p>
<p>如果开始位置 m 不是一个正常的字符的开始位置，那么返回的结果是 k 个空格（k 的值等于下一个有效字符的开始位置和 m 的差），空格后面是有效字符；如果字符串的 m+n-1 的位置不是一个有效的字符，那么就以空格填充。也就是不截断字符。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT SUBSTRB('达梦数据库有限公司',4,15);
</code></pre>
<p>查询结果为：□ 数据库有限公司</p>
<p>说明：□ 表示空格字符，下同。</p>
<p>字符串前面是一个空格，这是因为字符串'达梦数据库有限公司'的第 4 个字节不是一个完整的字符的开始，因此用空格代替。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT SUBSTRB('我们的计算机',3,4) "Subs", LENGTHB(SUBSTRB('我们的计算机',3,4));
</code></pre>
<p>查询结果为：们的 4</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT SUBSTRB('ABCDEFG',3,3) "Subs";
</code></pre>
<p>查询结果为：CDE</p>
<p>注意：函数 SUBSTRB 字节作为计算单位，一个字符在不同的编码方式下的字节长度是不同的。</p>
<ol start="40">
<li><strong>函数 TO_CHAR</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法： TO_CHAR(character)
</code></pre>
<p><strong>图例</strong></p>
<p>函数 TO_CHAR（VARCHAR、CLOB、TEXT 类型）</p>
<p><img src="%E5%87%BD%E6%95%B0%20%E8%BE%BE%E6%A2%A6%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3_files/%25E5%2587%25BD%25E6%2595%25B0TO_CHAR%25EF%25BC%2588VARCHAR%25E3%2580%2581CLOB%25E3%2580.jpg" alt="函数 TO_CHAR（VARCHAR、CLOB、TEXT 类型）"></p>
<p>功能：将 VARCHAR、CLOB、TEXT 类型的数据转化为 VARCHAR 类型输出。VARCHAR 类型的长度不能超过 32767 个字节，CLOB、TEXT 类型的长度不能超过 32766 个字节。</p>
<p>当参数类型为 VARCHAR 时，还可指定 FMT 与 NLS，FMT 和 NLS 的具体意义和限制可参见 <a href="#8.1数值函数">8.1 数值函数</a>的 TO_CHAR 函数介绍。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_CHAR('0110');
</code></pre>
<p>查询结果为：0110</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">CREATE TABLE T2(C1 VARCHAR(4000));

INSERT INTO T2 VALUES('达梦数据库有限公司成立于2000年，为国有控股的基础软件企业，专业从事数据库管理系统研发、销售和服务。其前身是华中科技大学数据库与多媒体研究所，是国内最早从事数据库管理系统研发的科研机构。达梦数据库为中国数据库标准委员会组长单位，得到了国家各级政府的强力支持。');

SELECT TO_CHAR(C1) FROM T2;
</code></pre>
<p>查询结果为：达梦数据库有限公司成立于 2000 
年，为国有控股的基础软件企业，专业从事数据库管理系统研发、销售和服务。其前身是华中科技大学数据库与多媒体研究所，是国内最早从事数据库管理系统研发
的科研机构。达梦数据库为中国数据库标准委员会组长单位，得到了国家各级政府的强力支持。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_CHAR('123','99,99','NLS_ISO_CURRENCY=CHINA');
</code></pre>
<p>查询结果为：1,23</p>
<ol start="41">
<li><strong>函数 TRANSLATE</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：TRANSLATE(char,from,to)
</code></pre>
<p>功能：TRANSLATE 是一个字符替换函数。char、from 和 to 分别代表一字符串。对于 char 字符串，首先，查找 char
 中是否含有 from 字符串，如果找到，则将其含有的 from 与 to 中的字符一一匹配，并用 to 中相应的字符替换，直至 from 
中的字符全部替换完毕。to 中的不足或多余的字符，均视为空值。</p>
<p>例 1</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TRANSLATE('我们的计算机', '我们的', '大世界');
</code></pre>
<p>查询结果为：大世界计算机 ('我'将被'大'替代,'们'将被'世'替代,'的'将被'界'替代)</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TRANSLATE('我们的计算机', '我们的', '世界');
</code></pre>
<p>查询结果为：世界计算机('我'将被'世'替代,'们'将被'界'替代,'的'对应的是空值，将被移走)</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TRANSLATE('我们的计算机', '我们的', '大大世界');
</code></pre>
<p>查询结果为：大大世计算机 ('我'将被'大'替代,'们'将被'大'替代,'的'将被'世'替代，'界'对应的是空值，将被忽略)</p>
<p>例 2</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT NAME,TRANSLATE (NAME,'发货','送货') FROM PERSON.ADDRESS_TYPE;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">NAME     	 TRANSLATE(NAME,'发货','送货')
-------- -----------------------------
发货地址 	 送货地址
送货地址 	 送货地址
家庭地址 	 家庭地址
公司地址 	 公司地址
</code></pre>
<ol start="42">
<li><strong>函数 TRIM</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：TRIM([&lt;&lt;LEADING|TRAILING|BOTH&gt; [char] | char&gt; FROM] str)
</code></pre>
<p>功能：str 支持字符串类型和 CLOB 类型，CLOB 的最大长度由 INI 参数 CLOB_MAX_IFUN_LEN 指定。TRIM 从
 str 的首端(LEADING)或末端(TRAILING)或两端(BOTH)删除 char 指定的字符，如果任何一个变量是 NULL，则返回 
NULL。默认的修剪方向为 BOTH，默认的修剪字符为空格。函数返回值类型与 str 类型保持一致。</p>
<p>例 1 对 PERSON.ADDRESS_TYPE 表中的 NAME 列使用 TRIM 函数从末端删除’址’字符</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT NAME,TRIM(TRAILING '址' FROM NAME) FROM PERSON.ADDRESS_TYPE;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">NAME     TRIM(TRAILING'址'FROMNAME)
-------- --------------------------
发货地址 发货地
送货地址 送货地
家庭地址 家庭地
公司地址 公司地
</code></pre>
<p>例 2 对字符串使用 TRIM 函数，默认修剪方向为 BOTH（两端）</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TRIM( ' Hello World ');
</code></pre>
<p>查询结果为：Hello World</p>
<p>例 3 对字符串使用 TRIM 函数，修剪方向为 LEADING（首端）</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TRIM(LEADING FROM ' Hello World ');
</code></pre>
<p>查询结果为：Hello World□□□</p>
<p>说明：□ 表示空格字符，下同。</p>
<p>例 4 对字符串使用 TRIM 函数，修剪方向为 TRAILING（末端）</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TRIM(TRAILING FROM ' Hello World ');
</code></pre>
<p>查询结果为：□□□Hello World</p>
<p>例 5 对字符串使用 TRIM 函数，修剪方向为 BOTH（两端）</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TRIM(BOTH FROM ' Hello World ');
</code></pre>
<p>查询结果为：Hello World</p>
<ol start="43">
<li><strong>函数 UCASE</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：UCASE(char)
</code></pre>
<p>功能：返回字符串中，所有字母改为大写，不是字母的字符不受影响。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT UCASE('hello world');
</code></pre>
<p>查询结果为：HELLO WORLD</p>
<ol start="44">
<li><strong>函数 UPPER</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：UPPER(char)
</code></pre>
<p>功能：返回字符串中，所有字母改为大写，不是字母的字符不受影响。等价于 UCASE(char)。</p>
<ol start="45">
<li><strong>函数 NLS_UPPER</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：NLS_UPPER(char)
</code></pre>
<p>功能：将输入的字符串中所有字母改为大写后返回，不是字母的字符不受影响。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT NLS_UPPER('abcd123') FROM DUAL;
</code></pre>
<p>查询结果为：ABCD123</p>
<ol start="46">
<li><strong>函数 REGEXP</strong></li>
</ol>
<p>REGEXP 函数是根据符合 POSIX 标准的正则表达式进行字符串匹配操作的系统函数，是字符串处理函数的一种扩展。使用该函数时需要保证 
DM 安装目录的 bin 子目录下存在 libregex.dll（windows）或 libregex.so（linux）库文件，否则报错。</p>
<p>达梦支持的匹配标准如下：</p>
<center>表8.2.1 符合POSIX标准的正则表达式</center>
<table>
<thead>
<tr>
<th><strong>语法</strong></th>
<th><strong>说明</strong></th>
<th><strong>示例</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>.</td>
<td>匹配任何除换行符之外的单个字符</td>
<td>d.m 匹配“dameng”</td>
</tr>
<tr>
<td>*</td>
<td>匹配前面的字符任意次</td>
<td>a*b 匹配“bat”中的“b”和“about”中的“ab”。</td>
</tr>
<tr>
<td>+</td>
<td>匹配前面的字符一次或多次</td>
<td>ac+ 匹配包含字母“a”和至少一个字母“c”的单词，如“race”和“ace”。</td>
</tr>
<tr>
<td>^</td>
<td>匹配行首</td>
<td>^car 仅当单词“car”显示为行中的第一组字符时匹配该单词</td>
</tr>
<tr>
<td>$</td>
<td>匹配行尾</td>
<td>end$ 仅当单词“end”显示为可能位于行尾的最后一组字符时匹配该单词</td>
</tr>
<tr>
<td>[]</td>
<td>字符集，匹配任何括号间的字符</td>
<td>be[n-t] 匹配“between”中的“bet”、“beneath”中的“ben”和“beside”中的“bes”，但不匹配“below”中的“bel”。</td>
</tr>
<tr>
<td>[^]</td>
<td>排除字符集。匹配任何不在括号间的字符</td>
<td>be[n-t] 匹配“before”中的“bef”、“behind”中的“beh”和“below”中的“bel”，但是不匹配“beneath”中的“ben”。</td>
</tr>
<tr>
<td>(表达式)</td>
<td>标记正则表达式中的子正则表达式</td>
<td>(abc)+ 匹配“abcabcabc”</td>
</tr>
<tr>
<td>|</td>
<td>匹配 OR 符号 (|) 之前或之后的表达式。最常用在分组中。</td>
<td>(sponge|mud) bath 匹配“sponge bath”和“mud bath”。</td>
</tr>
<tr>
<td>\</td>
<td>按原义匹配反斜杠 (\) 之后的字符。这使您可以查找正则表达式表示法中使用的字符，如 { 和 ^。</td>
<td>\^ 搜索 ^ 字符</td>
</tr>
<tr>
<td>{n[,m]}</td>
<td>区间表达式，匹配在它之前的单个字符重现的次数区间。{n}指重复 n 次；{n,}为至少出现 n 次重复；{n,m}为重现 n 至 m 次</td>
<td>zo{2} 匹配“zoone”中的“zoo”，但不匹配“zozo”。</td>
</tr>
<tr>
<td>[[:alpha:]]</td>
<td>表示任意字母([a-z]+)| ([A-Z]+)</td>
<td></td>
</tr>
<tr>
<td>[[:digit:]]</td>
<td>表示任意数字\d ([0-9]+)</td>
<td></td>
</tr>
<tr>
<td>[[:lower:]]</td>
<td>表示任意小写字母 ([a-z]+)</td>
<td></td>
</tr>
<tr>
<td>[[:alnum:]]</td>
<td>表示任意字母和数字([a-z0-9]+)</td>
<td></td>
</tr>
<tr>
<td>[[:space:]]</td>
<td>表示任意空格\s</td>
<td></td>
</tr>
<tr>
<td>[[:upper:]]</td>
<td>表示任意大写字母([A-Z]+)</td>
<td></td>
</tr>
<tr>
<td>[[:punct:]]</td>
<td>表示任意标点符号</td>
<td></td>
</tr>
<tr>
<td>[[:xdigit:]]</td>
<td>表示任意 16 进制数([0-9a-fA-F]+)</td>
<td></td>
</tr>
<tr>
<td>\w</td>
<td>表示一个数字或字母字符</td>
<td></td>
</tr>
<tr>
<td>\W</td>
<td>表示一个非数字或字母字符</td>
<td></td>
</tr>
<tr>
<td>\s</td>
<td>表示一个空格字符</td>
<td></td>
</tr>
<tr>
<td>\S</td>
<td>表示一个非空格字符</td>
<td></td>
</tr>
<tr>
<td>\d</td>
<td>表示一个数字字符</td>
<td></td>
</tr>
<tr>
<td>\D</td>
<td>表示一个非数字字符</td>
<td></td>
</tr>
</tbody>
</table>
<p>值得注意的是，对于 Perl 规则的正则表达式达梦暂不支持：[==],{n}?, \A, \Z, *?,+?, ??, {n}?, {n,}?, {n,m}?。</p>
<p>DM8 支持的 REGEXP 函数如下表：</p>
<center>表8.2.2 REGEXP函数</center>
<table>
<thead>
<tr>
<th><strong>序号</strong></th>
<th><strong>函数名</strong></th>
<th><strong>功能简要说明</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>REGEXP_COUNT(str, pattern[, position [, match_param]])</td>
<td>根据 pattern 正则表达式，从 str 字符串的第 position 个字符开始查找符合正则表达式的子串的个数，并符合匹配参数 match_param</td>
</tr>
<tr>
<td>2</td>
<td>REGEXP_LIKE(str, pattern [, match_param])</td>
<td>根据 pattern 正则表达式，查找 str 字符串是否存在符合正则表达式的子串，并符合匹配参数 match_param</td>
</tr>
<tr>
<td>3</td>
<td>REGEXP_INSTR(str, pattern[, position[, occurrence [, return_opt [, match_param [, subexpr]]]]])</td>
<td>根据 pattern 正则表达式，从 str 字符串的第 position 个字符开始查找符合 subexpr 正则表达式的子串，如果 
return_opt 为 0，返回第 occurrence 次出现的位置，如果 return_opt 为大于 
0，则返回该出现位置的下一个字符位置，并符合匹配参数。Subexpr 指定匹配的子正则表达式</td>
</tr>
<tr>
<td>4</td>
<td>REGEXP_SUBSTR(str, pattern [,position [, occurrence [,match_param[, subexpr]]]])</td>
<td>根据 pattern 正则表达式，从 str 字符串的第 position 个字符开始查找符合 subexpr 正则表达式的子串，返回第 occurrence 次出现的子串，并符合匹配参数 match_param</td>
</tr>
<tr>
<td>5</td>
<td>REGEXP_REPLACE(str, pattern [, replace_str [, position [, occurrence [,match_param]]]])</td>
<td>根据 pattern 正则表达式，从 str 字符串的第 position 个字符开始查找符合正则表达式的子串，并用 replace_str 进行替换第 occurrence 次出现的子串，并符合匹配参数 match_param</td>
</tr>
</tbody>
</table>
<p><strong>参数说明：</strong></p>
<p>str：待匹配的字符串，支持字符串类型与 CLOB 类型，字符串最大长度为 32767 字节，CLOB 的最大长度由 INI 参数 CLOB_MAX_IFUN_LEN 指定；</p>
<p>pattern：符合 POSIX 标准的正则表达式，最大长度为 512 字节；</p>
<p>position：匹配的源字符串的开始位置，正整数，默认为 1；</p>
<p>occurrence：匹配次数，正整数，默认为 1；</p>
<p>match_param：正则表达式的匹配参数，默认大小写敏感，如下表所示：</p>
<center>表8.2.3 匹配参数</center>
<table>
<thead>
<tr>
<th><strong>值</strong></th>
<th><strong>说明</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>c</td>
<td>表示大小写敏感。例如：REGEXP_COUNT('AbCd', 'abcd', 1, 'c')，结果为 0</td>
</tr>
<tr>
<td>i</td>
<td>表示大小写不敏感。例如：REGEXP_COUNT('AbCd', 'abcd', 1, 'i')，结果为 1</td>
</tr>
<tr>
<td>m</td>
<td>将源字符串当成多行处理，默认当成一行。 例如：REGEXP_COUNT('ab'||CHR(10)||'ac', '^a.', 1, 'm')，结果为 2</td>
</tr>
<tr>
<td>n</td>
<td>通配符（.）匹配换行符，默认不匹配。 例如：REGEXP_COUNT('a'||CHR(10)||'d', 'a.d', 1, 'n')，结果为 1</td>
</tr>
<tr>
<td>x</td>
<td>忽略空格字符。例如：REGEXP_COUNT('abcd', 'a b c d', 1, 'x')，结果为 1</td>
</tr>
</tbody>
</table>
<p>return_opt：正整数，返回匹配子串的位置。值为 0：表示返回子串的开始位置；值大于 0：表示返回子串结束位置的下一个字符位置；</p>
<p>subexpr：正整数，取值范围为：0~9，表示匹配 pattern 中的第 subexpr 
个子正则表达式，子正则表达式必须是由括号标记的表达式。如果 subexpr=0，则表示匹配整个正则表达式；如果 subexpr &gt; 
0，则匹配对应的第 subexpr 个子正则表达式；如果 subexpr 大于子正则表达式个数或者 subexpr 为 NULL，则返回 
NULL。</p>
<p>replace_str：用于替换的字符串，最大长度为 512 字节。</p>
<p>DM 的 REGEXP 函数支持正则表达式的反向引用，通过“\数字”的方式进行引用，如\1 表示第一个匹配的子表达式。</p>
<p>如下详细介绍各函数：</p>
<p>1）函数 REGEXP_COUNT</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：REGEXP_COUNT(str, pattern[, position [, match_param]])
</code></pre>
<p>功能：根据 pattern 正则表达式，从 str 字符串的第 position 个字符开始查找符合正则表达式的子串的个数，并符合匹配参数
 match_param。position 默认值为 1，position 为正整数，小于 0 则报错；如果 position 为空，则返回 
NULL。pattern 必须符合正则表达式的规则，否则报错。match_param 不合法，则报错。</p>
<p>返回值：如果 str 和 pattern 其中有一个为空串或 NULL，则返回 NULL。如果不匹配，返回 0；如果匹配，返回匹配的个数。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT REGEXP_COUNT('AbCd', 'abcd', 1, 'i') FROM DUAL;
</code></pre>
<p>查询结果为：1</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT REGEXP_COUNT('AbCd', 'abcd', 1, 'c') FROM DUAL;
</code></pre>
<p>查询结果为：0</p>
<p>2）函数 REGEXP_LIKE</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：REGEXP_LIKE(str, pattern [, match_param])
</code></pre>
<p>功能：根据 pattern 正则表达式，查找 str 字符串是否存在符合正则表达式的子串，并符合匹配参数 match_param。</p>
<p>返回值：如果匹配，则返回 1；否则返回 0。如果 str 和 pattern 中任一个为空串或 NULL，则返回 NULL；</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT 1 FROM DUAL WHERE REGEXP_LIKE('DM database V7', 'dm', 'c');
</code></pre>
<p>查询结果为：无返回行</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT 1 FROM DUAL WHERE REGEXP_LIKE('DM database V7', 'dm', 'i');
</code></pre>
<p>查询结果为：1</p>
<p>3）函数 REGEXP_INSTR</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：REGEXP_INSTR(str, pattern[, position[, occurrence [, return_opt [,match_param [, subexpr]]]]])
</code></pre>
<p>功能：根据 pattern 正则表达式，从 str 字符串的第 position 个字符开始查找符合 subexpr 
正则表达式的子串，如果 return_opt 为 0，返回第 occurrence 次出现的位置，如果 return_opt 为大于 
0，则返回该出现位置的下一个字符位置，并符合匹配参数。Subexpr 指定匹配的子正则表达式。</p>
<p>返回值：如果 str、pattern、position、occurrence、return_opt 和 subexpr 中任一个为 NULL，则返回 NULL。否则返回符合条件的子串位置，如果没有找到，则返回 0。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT REGEXP_INSTR('a为了aaac','aa') FROM DUAL;
</code></pre>
<p>查询结果为：4</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT REGEXP_INSTR('a为了aaac','aa',5) FROM DUAL;
</code></pre>
<p>查询结果为：5</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT REGEXP_INSTR('123%4567890', '(123)%(4(56)(78))', 1, 1, 0, 'i', 2) "REGEXP_INSTR" FROM DUAL;
</code></pre>
<p>查询结果为：5</p>
<p>4）REGEXP_SUBSTR</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：REGEXP_SUBSTR(str, pattern [,position [, occurrence [,match_param[, subexpr]]]])
</code></pre>
<p>功能：根据 pattern 正则表达式，从 str 字符串的第 position 个字符开始查找符合 subexpr 
正则表达式的子串，返回第 occurrence 次出现的子串，并符合匹配参数 match_param。occurrence 默认为 1。如果 
position 或 occurrence 的输入值不为正数，则报错。</p>
<p>返回值：如果 str、pattern、position、occurrence 和 subexpr 中任一个为 NULL，则返回 NULL。如果找到符合正则表达式的子串，则返回匹配的子串；如果没有找到，则返回 NULL。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT REGEXP_SUBSTR('a为aa了aac','(a*)',2) FROM DUAL;
</code></pre>
<p>查询结果为：空</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT REGEXP_SUBSTR('a为aa了aac','(a+)',2) FROM DUAL;
</code></pre>
<p>查询结果为：aa</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT REGEXP_SUBSTR('500 DM8 DATABASE, SHANG HAI, CN', ', ([^,]+),', 5, 1, 'i', 1) "REGEXPR_SUBSTR"  FROM DUAL;
</code></pre>
<p>查询结果为：SHANG HAI</p>
<p>5）REGEXP_REPLACE</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：REGEXP_REPLACE(str, pattern [, replace_str [, position [,occurrence [,match_param]]]])
</code></pre>
<p>功能：根据 pattern 正则表达式，从 str 字符串的第 position 个字符开始查找符合正则表达式的子串，并用 
replace_str 进行替换第 occurrence 次出现的子串，并符合匹配参数 match_param。occurrence 默认为 
0，替换所有出现的子串。replace_str 默认为空串，在替换过程中，则相当于删除查找到的子串；position 默认值为 1，如果 
position 的值不为正整数，则报错；</p>
<p>返回值：返回替换后的 str。如果 str、position 和 occurrence 中任一个为 NULL，则返回 NULL；如果 
pattern 为 NULL，则返回 str；如果 str 中所有的字符都被空串替换，则返回 NULL，相当于删除所有的字符。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT REGEXP_REPLACE('a为了aaac','aa','bb') FROM DUAL;
</code></pre>
<p>查询结果为：a 为了 bbac</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT REGEXP_REPLACE('a为了ac','aa','bb') FROM DUAL;
</code></pre>
<p>查询结果为：a 为了 ac</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT REGEXP_REPLACE('a为aa了aac','aa','bb') FROM DUAL;
</code></pre>
<p>查询结果为：a 为 bb 了 bbc</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT REGEXP_REPLACE('500 DM8 DATABASE, SHANG HAI, CN', ',[^,]+,', ', WU HAN,', 5, 1,'i') "REGEXPR_REPLACE" FROM DUAL;
</code></pre>
<p>查询结果：500 DM8 DATABASE, WU HAN, CN</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT REGEXP_REPLACE('www1234xxxx3q', '([[:alpha:]]+)', 'AAA\1') FROM DUAL;
</code></pre>
<p>此处使用了正则表达式的反向引用功能，查询结果为：AAAwww1234AAAxxxx3AAAq</p>
<ol start="47">
<li><strong>函数 OVERLAY</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：OVERLAY(char1 PLACING char2 FROM m [ FOR n ])
</code></pre>
<p>功能：用串 char2（称为“替换字符串”）覆盖源串 char1 
的指定子串，该子串是通过在源串中的给定起始位置的数值（m）和长度的数值（n）而指明，来修改一个串自变量。当子串长度为 0 
时，不会从源串中移去任何串；当不指定 n 时，默认 n 为 char2 的长度。函数的返回串是在源串的给定起始位置插入替换字符串所得的结果。</p>
<p>例 1 对 PRODUCTION.PRODUCT 表的 NAME 列使用 OVERLAY 函数，将 NAME 列的数据从第三个字符开始的后两个字符替换成指定的’口’字符串</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT NAME,OVERLAY(NAME PLACING '口' FROM 3 FOR 2) FROM PRODUCTION.PRODUCT;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">NAME                             	  "OVERLAY"(NAME,'口',3,2)
-------------------------------- ------------------------------
红楼梦                           	  红楼口
水浒传                           	  水浒口
老人与海                         	  老人口
射雕英雄传(全四册)               	  射雕口传(全四册)
鲁迅文集(小说、散文、杂文)全两册 	    鲁迅口(小说、散文、杂文)全两册
长征                             	  长征口
数据结构(C语言版)(附光盘)        	    数据口(C语言版)(附光盘)
工作中无小事                     	   工作口小事
突破英文基础词汇                 	  突破口基础词汇
噼里啪啦丛书(全7册)              	  噼里口丛书(全7册)
</code></pre>
<p>例 2 对字符串使用 OVERLAY 函数，将源串的从第二个字符开始的后四个字符替换成指定的’hom’字符串</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT OVERLAY('txxxxas' PLACING 'hom' FROM 2 FOR 4);
</code></pre>
<p>查询结果为：thomas</p>
<ol start="48">
<li><strong>函数 TEXT_EQUAL</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：TEXT_EQUAL(n1,n2)
</code></pre>
<p>功能：返回 n1，n2 的比较结果，完全相等，返回 1；否则返回 0。n1，n2 的类型为 CLOB、TEXT 或 
LONGVARCHAR。如果 n1 或 n2 均为空串或 NULL，结果返回为 1；否则只有一个为空串或为 NULL，结果返回 
0。不忽略结果空格和英文字母大小写。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TEXT_EQUAL('a', 'b');
</code></pre>
<p>查询结果为：0</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TEXT_EQUAL('a','a');
</code></pre>
<p>查询结果为：1</p>
<ol start="49">
<li><strong>函数 BLOB_EQUAL</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：BLOB_EQUAL(n1,n2)
</code></pre>
<p>功能：返回 n1，n2 两个数的比较结果，完全相等，返回 1；否则返回 0。n1，n2 的类型为 BLOB、IMAGE 或 
LONGVARBINARY。如果 n1 或 n2 均为空串或 NULL，结果返回为 1；否则只有一个为空串或为 NULL，结果返回 0。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT BLOB_EQUAL(0xFFFEE, 0xEEEFF);
</code></pre>
<p>查询结果为：0</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT BLOB_EQUAL(0xFFFEE, 0xFFFEE);
</code></pre>
<p>查询结果为：1</p>
<ol start="50">
<li><strong>函数 NLSSORT</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：NLSSORT(str1 [,nls_sort=str2])
</code></pre>
<p>功能：返回对自然语言排序的编码。当只有 str1 一个参数时，与 RAWTOHEX 类似，返回 16 进制字符串。str2 
决定按哪种方式排序：BINARY 表示按默认字符集二进制编码排序；SCHINESE_PINYIN_M 
表示按中文拼音排序；SCHINESE_STROKE_M 表示按中文笔画排序；SCHINESE_RADICAL_M 
表示按中文部首排序；THAI_CI_AS 表示按泰文排序；KOREAN_M 表示按韩文排序。当 str2 为 BINARY 
时，忽略第二个参数，等价于 NLSSORT(str1)。仅字符集为 UTF-8 的数据库支持自然语言按泰文排序。</p>
<p>用户可以通过 ALTER SESSION 语法（具体请参考 <a target="_blank" rel="noopener external nofollow noreferrer" href="https://eco.dameng.com/document/dm/zh-cn/pm/definition-statement.html#3.15.4%20%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E6%8E%92%E5%BA%8F%E6%96%B9%E5%BC%8F">3.15.4 自然语言排序方式</a>）设置 nls_sort 的参数值，修改后的参数值只对当前会话起作用，当函数 NLSSORT 只有 str1 一个参数时，当前会话默认使用 ALTER SESSION 设置的 nls_sort 的参数值。</p>
<p>例 1 使用 NLSSORT 函数返回’abc’的 16 进制字符串</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT NLSSORT('abc') FROM DUAL;
</code></pre>
<p>查询结果为：61626300</p>
<p>例 2 使用 NLSSORT 函数对表中的字符串 C1 列按中文拼音排序</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">CREATE TABLE TEST(C1 VARCHAR2(200));
INSERT INTO TEST VALUES('啊');
INSERT INTO TEST VALUES('不');
INSERT INTO TEST VALUES('才');
INSERT INTO TEST VALUES('的');
INSERT INTO TEST VALUES('一');
INSERT INTO TEST VALUES('二');
INSERT INTO TEST VALUES('三');
INSERT INTO TEST VALUES('四');
INSERT INTO TEST VALUES('品');
INSERT INTO TEST VALUES('磊');
SELECT * FROM TEST ORDER BY NLSSORT(C1, 'NLS_SORT=SCHINESE_PINYIN_M');   
//拼音
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">行号          C1
---------- --
1            啊
2            不
3            才
4            的
5            二
6            磊
7            品
8            三
9            四
10           一
</code></pre>
<p>例 3  使用 NLSSORT 函数对表中的字符串 C1 列按中文笔画排序</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT * FROM TEST ORDER BY NLSSORT(C1, 'NLS_SORT=SCHINESE_STROKE_M'); 
//笔画
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">行号         C1
---------- --
1            一
2            二
3            三
4            才
5            不
6            四
7            的
8            品
9            啊
10           磊
</code></pre>
<p>例 4  使用 NLSSORT 函数对表中的字符串 C1 列按中文部首排序</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT * FROM TEST ORDER BY NLSSORT(C1, 'NLS_SORT=SCHINESE_RADICAL_M'); 
//部首
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">行号         C1
---------- --
1            一
2            二
3            三
4            不
5            品
6            啊
7            四
8            才
9            的
10           磊
</code></pre>
<p>例 5  使用 NLSSORT 函数对表中的字符串 C1 列按中文拼音排序，并返回 NLSSORT(C1)，NLSSORT(C1, 'NLS_SORT=SCHINESE_PINYIN_M')</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT C1,NLSSORT(C1),NLSSORT(C1, 'NLS_SORT=SCHINESE_PINYIN_M') FROM TEST ORDER BY NLSSORT(C1, 'NLS_SORT=SCHINESE_PINYIN_M');
</code></pre>
<p>分别返回 c1，返回将 c1 转化后的 16 进制字符串，返回用来为汉字排序的编码。</p>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">C1 	NLSSORT(C1) NLSSORT(C1,'NLS_SORT=SCHINESE_PINYIN_M')
-- 	----------- ----------------------------------------
啊 	B0A100      	3B2C
不 	B2BB00      	4248
才 	B2C500      	4291
的 	B5C400      	4D8D
二 	B6FE00      	531D
磊 	C0DA00      	743E
品 	C6B700      	8898
三 	C8FD00      	932C
四 	CBC400      	996A
一 	D2BB00      	B310
</code></pre>
<p>例 6 使用 NLSSORT 函数对表中的字符串 C1 列按中文拼音排序，并返回 NLSSORT(C1, 'NLS_SORT=BINARY')</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT C1,NLSSORT(C1, 'NLS_SORT=BINARY') FROM TEST ORDER BY NLSSORT(C1, 'NLS_SORT=SCHINESE_PINYIN_M');
</code></pre>
<p>NLSSORT(C1, 'NLS_SORT=BINARY')等价于 NLSSORT(C1)。</p>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">C1 	NLSSORT(C1,'NLS_SORT=BINARY')
--  -----------------------------
啊 	B0A100
不 	B2BB00
才 	B2C500
的 	B5C400
二 	B6FE00
磊 	C0DA00
品 	C6B700
三 	C8FD00
四 	CBC400
一 	D2BB00
</code></pre>
<p>例 7 使用 ALTER SESSION 语法设置 nls_sort 的参数值为 schinese_pinyin_m，NLSSORT 函数使用 ALTER SESSION 设置的 nls_sort 的参数值对 C1 进行排序，并返回 NLSSORT(C1)</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">ALTER SESSION SET NLS_SORT='SCHINESE_PINYIN_M';

SELECT C1,NLSSORT(C1) FROM TEST ORDER BY NLSSORT(C1);
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">C1 	NLSSORT(C1)
-- 	-----------
啊 	3B2C
不 	4248
才 	4291
的 	4D8D
二 	531D
磊 	743E
品 	8898
三 	932C
四 	996A
一 	B310
</code></pre>
<p>例 8 使用 NLSSORT 函数对表中的字符串 C1 列按中文拼音排序，并返回 NLSSORT(C1, 'NLS_SORT=SCHINESE_PINYIN_M')</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT C1,NLSSORT(C1, 'NLS_SORT=SCHINESE_PINYIN_M') FROM TEST ORDER BY NLSSORT(C1, 'NLS_SORT=SCHINESE_PINYIN_M');
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">C1 	NLSSORT(C1,'NLS_SORT=SCHINESE_PINYIN_M')
--  ----------------------------------------
啊 	3B2C
不 	4248
才 	4291
的 	4D8D
二 	531D
磊 	743E
品 	8898
三 	932C
四 	996A
一 	B310
</code></pre>
<p>可以看出，上述两个 SQL 语句的查询结果一致。由于用 ALTER SESSION 语法设置 nls_sort 的参数值为 
schinese_pinyin_m，因此在当前会话中，当函数 NLSSORT 只有一个参数时，默认第二个参数 nls_sort 的值为 
schinese_pinyin_m。</p>
<ol start="51">
<li><strong>函数 GREATEST</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：GREATEST(char {,char})
</code></pre>
<p>功能：求一个或多个字符串中最大的字符串。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT GREATEST('abb','abd', 'abc');
</code></pre>
<p>查询结果为：abd</p>
<ol start="52">
<li><strong>函数 GREAT</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：GREAT (char1, char2)
</code></pre>
<p>功能：求 char1、char2 中最大的字符串。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT GREAT ('abb','abd');
</code></pre>
<p>查询结果为：abd</p>
<ol start="53">
<li><strong>函数 TO_SINGLE_BYTE</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法： TO_SINGLE_BYTE(
STR IN VARCHAR
) 
</code></pre>
<p>功能：将多字节形式的字符（串）转换为对应的单字节形式</p>
<p>参数： STR：待转换的字符，长度为 4096</p>
<p>返回值： RVAL：函数返回值，长度为 8187</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT LENGTHB(TO_SINGLE_BYTE('aa'));
</code></pre>
<p>查询结果为：2</p>
<ol start="54">
<li><strong>函数 TO_MULTI_BYTE</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法： TO_MULTI_BYTE(
STR IN VARCHAR
)
</code></pre>
<p>功能：将单字节形式的字符（串）转换为对应的多字节形式 (不同的字符集转换结果不同)</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT LENGTHB(TO_MULTI_BYTE('aa'));
</code></pre>
<p>查询结果为：4</p>
<ol start="55">
<li><strong>函数 EMPTY_BLOB</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：EMPTY_BLOB()
</code></pre>
<p>功能：初始化 blob 字段</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">DROP TABLE TT;
CREATE TABLE TT(C1 BLOB, C2 INT);
INSERT INTO TT VALUES(EMPTY_BLOB(),1);
INSERT INTO TT VALUES(NULL,2);
INSERT INTO TT VALUES(0X123,3);
SELECT LENGTHB(C1) FROM TT;
</code></pre>
<p>查询结果为：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">LENGTHB(C1)
-----------
0
NULL
2
</code></pre>
<ol start="56">
<li><strong>函数 EMPTY_CLOB</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：EMPTY_CLOB()
</code></pre>
<p>功能：初始化 clob 字段</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">DROP TABLE TT;
CREATE TABLE TT(C1 CLOB, C2 INT);
INSERT INTO TT VALUES(EMPTY_CLOB(),1);
INSERT INTO TT VALUES(NULL,2);
INSERT INTO TT VALUES('0X123',3);
SELECT LENGTHB(C1) FROM TT; 
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">LENGTHB(C1)
-----------
0
NULL
5
</code></pre>
<ol start="57">
<li><strong>函数 UNISTR</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：UNISTR (char)
</code></pre>
<p>功能：将字符串 char 中，ASCII 编码或 Unicode 编码（‘\XXXX’4 个 16 进制字符格式）转成本地字符。对于其他字符保持不变。</p>
<p>例 在 GB18030 库下，执行如下操作：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT UNISTR('\803F\55B5\55B5kind又\006e\0069\0063\0065') FROM DUAL;
</code></pre>
<p>查询结果为： 耿喵喵 kind 又 nice</p>
<ol start="58">
<li><strong>函数 ISNULL</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：ISNULL(char)
</code></pre>
<p>功能：判断表达式是否为 NULL，为 NULL 返回 1，否则返回 0。</p>
<p>例 查询总经理的 MANAGERID 是否为空：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ISNULL(MANAGERID) FROM RESOURCES.EMPLOYEE WHERE TITLE='总经理';
</code></pre>
<p>查询结果为：1</p>
<ol start="59">
<li><strong>函数 CONCAT_WS</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：CONCAT_WS(delim, char1,char2,char3,…)
</code></pre>
<p>功能：顺序联结多个字符串成为一个字符串，并用 delim 分割。</p>
<p>如果 delim 取值为 NULL，则返回 NULL。如果其它参数为 NULL，在执行拼接过程中跳过取值为 NULL 的参数。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT CONCAT_WS(',,','11','22','33');
</code></pre>
<p>查询结果为：11,,22,,33</p>
<ol start="60">
<li><strong>函数 SUBSTRING_INDEX</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：substring_index (char, delim, count)
</code></pre>
<p>功能：按关键字截取字符串，截取到指定分隔符出现指定次数位置之前。</p>
<p>char 为被截取的字符串，delim 为关键字符串，count 为关键字出现的次数。如果 count 为负，则从后往前截取，截取到指定分隔符出现指定次数位置之后。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT SUBSTRING_INDEX('blog.jb51.net', '.',2);
</code></pre>
<p>查询结果为：blog.jb51</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT SUBSTRING_INDEX('blog.jb51.net', '.',-2);
</code></pre>
<p>查询结果为：jb51.net</p>
<ol start="61">
<li><strong>函数 compose</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：COMPOSE(varchar str)
</code></pre>
<p>功能：用于在 UTF8 库下，将 str 以本地编码的形式返回。str 可为本地编码的字符串、UNISTR ()函数的输出结果、或两者的组合值。</p>
<p>此外，将元音字符和 UNISTR()生成的特殊符号组合之后作为 str，经 COMPOSE()转化之后，会形成一个新的特殊字符。元音字符有：a、e、i、o、u、A、E、I、O、U。</p>
<p>使用 UNISTR ()函数表示的特殊字符如下表所示。</p>
<center>表8.2.4 使用UNISTR()函数表示的特殊字符</center>
<table>
<thead>
<tr>
<th><strong>UNISTR()函数</strong></th>
<th><strong>UNISTR()生成的特殊符号</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>UNISTR('\0300')</td>
<td>沉音符 `</td>
</tr>
<tr>
<td>UNISTR('\0301')</td>
<td>重音符'</td>
</tr>
<tr>
<td>UNISTR('\0302')</td>
<td>抑扬音符号 ^</td>
</tr>
<tr>
<td>UNISTR('\0303')</td>
<td>颚化符号~</td>
</tr>
<tr>
<td>UNISTR('\0308')</td>
<td>元音变音 ¨</td>
</tr>
</tbody>
</table>
<p>只有 UTF8 库中，支持元音字符和 UNISTR()生成的特殊符号两两组合生成新的特殊字符。其它情况不能组合则两两相拼输出，则按当前库字符集输出。</p>
<p>可使用 MANAGER 或 DIsql 客户端工具演示下面的 COMPOSE()示例。用户需保证数据库采用的是 UTF-8 
字符集和客户端工具使用的编码格式为 UTF8。数据库的 UTF-8 字符集通过 dminit 初始化库时指定 
CHARSET/UNICODE_FLAG 为 1 实现。客户端工具编码格式 UTF8 可在 dm_svc.conf 文件中将 CHAR_CODE
 设置为 PG_UTF8 实现。</p>
<p>例 1 在 UTF8 库中，将 da 和 meng 合并之后，以本地编码的形式输出。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">select compose('da'||'meng') from dual;
</code></pre>
<p>查询结果为： dameng</p>
<p>例 2 在 UTF8 库中，将元音 a 和沉音符 ` 组合生成 à。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">select compose('a'||unistr('\0300')) from dual;
</code></pre>
<p>查询结果为：à</p>
<p>例 3 在 UTF8 库中，将元音 u、元音变音 ¨ 和沉音符 ` 组合生成 ǜ。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">select compose('u'||unistr('\0308') || unistr('\0300')) from dual;
</code></pre>
<p>查询结果为：ǜ</p>
<ol start="62">
<li><strong>函数 FIND_IN_SET</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：FIND_IN_SET(str, strlist[,separator])
</code></pre>
<p>功能：查询 strlist 中是否包含 str，返回 str 在 strlist 中第一次出现的位置或 NULL。</p>
<p>str 为待查询的字符串，strlist 为字符串列表，separator 为分隔符，缺省为”,”。字符串列表由 N 
个被分隔符分隔的字符串和分隔符组成，字符串可为空字符串。若 str 不在 strlist 中或 strlist 为空字符串，则返回 
0；若任一参数为 NULL，则返回值为 NULL；否则返回位于 1 到 N 中的数值。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT FIND_IN_SET('', '');
</code></pre>
<p>查询结果为：0</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT FIND_IN_SET(' ', ' ');
</code></pre>
<p>查询结果为：1</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT FIND_IN_SET('b', 'a,b,c');
</code></pre>
<p>查询结果为：2</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT FIND_IN_SET('', 'a,b,,');
</code></pre>
<p>查询结果为：3</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT FIND_IN_SET('ab', 'q8w8es8zcd8t8ab','8');
</code></pre>
<p>查询结果为：6</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT FIND_IN_SET(NULL, '');
</code></pre>
<p>查询结果为：NULL</p>
<p><strong>63.</strong>  <strong>函数 TRUNC</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：TRUNC(str1, str2)
</code></pre>
<p>功能：截取字符串函数。仅在以下两种情况下可以使用：</p>
<ol>
<li>当字符串 str2 解析成日期时间分量不成功时，解析成数字格式成功时，等价于数值函数 TRUNC(n[,m])，将 str1 当作小数数字，截取规则同数值函数 TRUNC(n[,m])，对 str1 中的数值进行截取。</li>
<li>当字符串 str2 解析成日期时间分量成功时，将 str1 当作日期时间数字，将 str1 截断到最接近格式参数 m 指定的形式。等价于日期时间函数 TRUNC(date[,fmt])。</li>
</ol>
<p>当字符串 str2 无法解析成日期时间分量或数字格式时，将会报错“字符串转换出错”。</p>
<p>例 1 str2 解析成数字格式成功</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">select trunc('108011524.122','-6') from dual;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">行号        TRUNC('108011524.122','-6')
---------- --------------
1         108000000
</code></pre>
<p>例 2 str2 解析成日期时间分量成功</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">select trunc('2010-09-01 10:59:59','yyyy');
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">行号        TRUNC('2010-09-01','yyyy')
---------- --------------------------
1          2010-01-01 00:00:00
</code></pre>
<h2 id="8-3-日期时间函数" class="article-heading" style="position: relative;">8.3 日期时间函数<a class="article-anchor" href="#8.3 日期时间函数" aria-hidden="true"></a><div style="position: absolute; top: -100px;" id="8.3 日期时间函数"></div></h2>
<p>日期时间函数的参数至少有一个是日期时间类型(TIME，DATE，TIMESTAMP)，返回值一般为日期时间类型和数值类型。对于日期时间类型数据的取值范围，请参考 <a target="_blank" rel="noopener external nofollow noreferrer" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm_sql-introduction.html#1.4.3%20%E6%97%A5%E6%9C%9F%E6%97%B6%E9%97%B4%E6%95%B0%E6%8D%AE%E7%B1%BB%E5%9E%8B">1.4.3 日期时间数据类型</a> 和《DM8 系统管理员手册》2.1.1.1 中对 IFUN_DATETIME_MODE 的介绍，若日期时间类型的参数或返回值超过限制范围，则报错。</p>
<p>由于 DM 支持儒略历，并考虑了历史上从儒略历转换至格里高利日期时的异常，不计算'1582-10-05'到'1582-10-14'之间的 10 天，因此日期时间函数也不计算这 10 天。</p>
<ol>
<li><strong>函数 ADD_DAYS</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：ADD_DAYS( date, n)
</code></pre>
<p>功能：返回日期 date 加上相应天数 n 后的日期值。n 可以是任意整数，date 是日期类型(DATE)或时间戳类型(TIMESTAMP)，返回值为日期类型(DATE)。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ADD_DAYS( DATE '2000-01-12',1);
</code></pre>
<p>查询结果为：2000-01-13</p>
<ol start="2">
<li><strong>函数 ADD_MONTHS</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：ADD_MONTHS(date,n)
</code></pre>
<p>功能：返回日期 date 加上 n 个月的日期时间值。n 可以是任意整数，date 
是日期类型(DATE)或时间戳类型(TIMESTAMP)，返回类型固定为日期类型(DATE)。如果相加之后的结果日期中月份所包含的天数比 
date 日期中的日分量要少，那么结果日期的该月最后一天被返回。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ADD_MONTHS(DATE '2000-01-31',1);
</code></pre>
<p>查询结果为：2000-02-29</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ADD_MONTHS(TIMESTAMP '2000-01-31 20:00:00',1);
</code></pre>
<p>查询结果为：2000-02-29</p>
<p>3.<strong>函数 ADD_WEEKS</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：ADD_WEEKS( date, n)
</code></pre>
<p>功能：返回日期 date 加上相应星期数 n 后的日期值。n 可以是任意整数，date 是日期类型(DATE)或时间戳类型(TIMESTAMP)，返回类型固定为日期类型(DATE)。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ADD_WEEKS( DATE '2000-01-12',1);
</code></pre>
<p>查询结果为: 2000-01-19</p>
<ol start="4">
<li><strong>函数 CURDATE</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：CURDATE()
</code></pre>
<p>功能：返回当前日期值，结果类型为 DATE。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT CURDATE();
</code></pre>
<p>查询结果为：执行此查询当天日期，如 2003-02-27</p>
<ol start="5">
<li><strong>函数 CURTIME</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：CURTIME(n)
</code></pre>
<p>功能：返回当前时间值，结果类型为 TIME WITH TIME ZONE。</p>
<p>参数：n：指定小数秒精度。取值范围 0~6，缺省为 6。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT CURTIME();
</code></pre>
<p>查询结果为：执行此查询的当前时间，如 14:53:54.859000 +8:00</p>
<p>6.<strong>函数 CURRENT_DATE</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：CURRENT_DATE()
</code></pre>
<p>功能：返回当前日期值，结果类型为 DATE，等价于 CURDATE()。</p>
<ol start="7">
<li><strong>函数 CURRENT_TIME</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：CURRENT_TIME(n)
</code></pre>
<p>功能：返回当前时间值，结果类型为 TIME WITH TIME ZONE，等价于 CURTIME()。</p>
<p>参数：n：指定小数秒精度。取值范围 0~6，缺省为 6。</p>
<ol start="8">
<li><strong>函数 CURRENT_TIMESTAMP</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：CURRENT_TIMESTAMP(n)
</code></pre>
<p>功能：返回当前带会话时区的时间戳，结果类型为 TIMESTAMP WITH TIME ZONE。</p>
<p>参数：n：指定小数秒精度。取值范围 0~6，缺省为 6。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT CURRENT_TIMESTAMP();
</code></pre>
<p>查询结果为：执行此查询的当前日期时间，如 2011-12-27 13:03:56.000000 +8:00</p>
<ol start="9">
<li><strong>函数 DATEADD</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：DATEADD(datepart,n,date)
</code></pre>
<p>功能：向指定的日期 date 加上 n 个 datepart 指定的时间段，返回新的 timestamp 值。datepart 取值见下表。</p>
<center>表8.3.1 datepart取值</center>
<table>
<thead>
<tr>
<th><strong>datepart 取值</strong></th>
<th><strong>datepart 意义</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>YEAR、YYYY、YY、SQL_TSI_YEAR</td>
<td>年</td>
</tr>
<tr>
<td>MONTH、MM、M、SQL_TSI_MONTH</td>
<td>月</td>
</tr>
<tr>
<td>DAY、DD、D、SQL_TSI_DAY</td>
<td>日</td>
</tr>
<tr>
<td>HOUR、HH、SQL_TSI_HOUR</td>
<td>时</td>
</tr>
<tr>
<td>MINUTE、MI、N、SQL_TSI_MINUTE</td>
<td>分</td>
</tr>
<tr>
<td>SECOND、S、SS、SQL_TSI_SECOND</td>
<td>秒</td>
</tr>
<tr>
<td>MILLISECOND、MS、SQL_TSI_FRAC_SECOND</td>
<td>毫秒</td>
</tr>
<tr>
<td>QUARTER、QQ、Q、SQL_TSI_QUARTER</td>
<td>所处的季度</td>
</tr>
<tr>
<td>DAYOFYEAR、DY、Y</td>
<td>在年份中所处的天数</td>
</tr>
<tr>
<td>WEEK、WK、WW、SQL_TSI_WEEK</td>
<td>在年份中所处的周数</td>
</tr>
<tr>
<td>WEEKDAY、DW</td>
<td>在一周中所处的天数</td>
</tr>
</tbody>
</table>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DATEADD(HH, 4, '2022-09-19 16:09:35');
</code></pre>
<p>查询结果为：2022-09-19 20:09:35.000000</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DATEADD(SS, 10, '14:05:47.555');
</code></pre>
<p>查询结果为：1900-01-01 14:05:57.555000</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DATEADD(WW, 15, '2000-06-09');
</code></pre>
<p>查询结果为：2000-09-22 00:00:00.000000</p>
<ol start="10">
<li><strong>函数 DATEDIFF/BIGDATEDIFF</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：DATEDIFF(datepart,date1,date2)
</code></pre>
<p>功能：返回跨两个指定日期的日期和时间边界数。datepart 取值见表 8.3.1。</p>
<p>注：当结果超出整数值范围，DATEDIFF 产生错误。对于毫秒 MILLISECOND，最大数是 24 天 20 小时 31 分钟零 23.647 秒。对于秒，最大数是 68<br>
年。若想提高可以表示的范围，可以使用 BIGDATEDIFF，其使用方法与 DATEDIFF 函数一致，只是可以表示更广范围的秒和毫秒。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DATEDIFF(QQ, '2003-06-01', DATE '2002-01-01');
</code></pre>
<p>查询结果为：-5</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DATEDIFF(MONTH, '2001-06-01', DATE '2002-01-01');
</code></pre>
<p>查询结果为：7</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DATEDIFF(WK, DATE '2003-02-07',DATE '2003-02-14');
</code></pre>
<p>查询结果为：1</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DATEDIFF(MS,'2003-02-14 12:10:10.000','2003-02-14 12:09:09.300');
</code></pre>
<p>查询结果为：-60700</p>
<ol start="11">
<li><strong>函数 DATEPART/date_part</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：DATEPART(datepart,date)
</code></pre>
<p>功能：返回代表日期 date 的指定部分的整数。datepart 取值请参 DATEDIFF(datepart,date1,date2)的参数。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DATEPART(SECOND, DATETIME '2000-02-02 13:33:40.00');
</code></pre>
<p>查询结果为：40</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DATEPART(DY, '2000-02-02');
</code></pre>
<p>查询结果为：33</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DATEPART(WEEKDAY, '2002-02-02');
</code></pre>
<p>查询结果为：7</p>
<p>说明：日期函数：date_part，其功能与 datepart 完全一样。但是写法有点不同：select 
datepart(year,'2008-10-10');如果用 date_part，则要写成：select 
date_part('2008-10-10','year')，即：参数顺序颠倒，同时指定要获取的日期部分的参数要带引号。</p>
<ol start="12">
<li><strong>函数 DAY</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：DAY(date)
</code></pre>
<p>功能：返回指定日期在月份中的天数</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DAY('2016-06-07');
</code></pre>
<p>查询结果为：7</p>
<ol start="13">
<li><strong>函数 DAYNAME</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：DAYNAME(date)
</code></pre>
<p>功能：返回日期的星期名称。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DAYNAME(DATE '2012-01-01');
</code></pre>
<p>查询结果为：Sunday</p>
<ol start="14">
<li><strong>函数 DAYOFMONTH</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：DAYOFMONTH(date)
</code></pre>
<p>功能：返回日期为所处月份中的第几天。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DAYOFMONTH('2003-01-03');
</code></pre>
<p>查询结果为：3</p>
<ol start="15">
<li><strong>函数 DAYOFWEEK</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：DAYOFWEEK(date)
</code></pre>
<p>功能：返回日期为所处星期中的第几天。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DAYOFWEEK('2003-01-01');
</code></pre>
<p>查询结果为：4</p>
<ol start="16">
<li><strong>函数 DAYOFYEAR</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：DAYOFYEAR(date)
</code></pre>
<p>功能：返回日期为所处年中的第几天。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DAYOFYEAR('2003-03-03');
</code></pre>
<p>查询结果为：62</p>
<ol start="17">
<li><strong>函数 DAYS_BETWEEN</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法: DAYS_BETWEEN(dt1,dt2)
</code></pre>
<p>功能：返回两个日期之间相差的天数。</p>
<ol start="18">
<li><strong>函数 EXTRACT</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：EXTRACT(dtfield FROM date)
</code></pre>
<p>功能：EXTRACT 从日期时间类型或时间间隔类型的参数 date 中抽取 dtfield 对应的数值，并返回一个数字值。如果 date 是
 NULL，则返回 NULL。Dtfiled 可以是 YEAR、MONTH、DAY、HOUR、MINUTE、SECOND。对于 SECOND 
之外的任何域，函数返回整数，对于 SECOND 返回小数。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT EXTRACT(YEAR FROM DATE '2000-01-01');
</code></pre>
<p>查询结果为：2000</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT EXTRACT(DAY FROM DATE '2000-01-01');
</code></pre>
<p>查询结果为：1</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT EXTRACT(MINUTE FROM TIME '12:00:01.35');
</code></pre>
<p>查询结果为：0</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT EXTRACT(TIMEZONE_HOUR FROM TIME '12:00:01.35 +9:30');
</code></pre>
<p>查询结果为：9</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT EXTRACT(TIMEZONE_MINUTE FROM TIME '12:00:01.35 +9:30');
</code></pre>
<p>查询结果为：30</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT EXTRACT(SECOND FROM TIMESTAMP '2000-01-01 12:00:01.35');
</code></pre>
<p>查询结果为：1.3500000000E+000</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT EXTRACT(SECOND FROM INTERVAL '-05:01:22.01' HOUR TO SECOND);
</code></pre>
<p>查询结果为：-2.2010000000E+001</p>
<ol start="19">
<li><strong>函数 GETDATE</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：GETDATE(n)
</code></pre>
<p>功能：返回系统的当前时间戳。</p>
<p>参数：n：指定小数秒精度。取值范围 0~6，缺省为 6。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT GETDATE();
</code></pre>
<p>查询结果为：返回系统的当前日期时间，如 2011-12-05 11:31:10.359000</p>
<ol start="20">
<li><strong>函数 GREATEST</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：GREATEST(date {,date})
</code></pre>
<p>功能：求一个或多个日期中的最大日期。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT GREATEST(date'1999-01-01',date'1998-01-01',date'2000-01-01');
</code></pre>
<p>查询结果为：2000-01-01</p>
<ol start="21">
<li><strong>函数 GREAT</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：GREAT (date1,date2)
</code></pre>
<p>功能：求 date1、date2 中的最大日期。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT GREAT (date'1999-01-01', date'2000-01-01');
</code></pre>
<p>查询结果为：2000-01-01</p>
<ol start="22">
<li><strong>函数 HOUR</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：HOUR(time)
</code></pre>
<p>功能：返回时间中的小时分量。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT HOUR(TIME '20:10:16');
</code></pre>
<p>查询结果为：20</p>
<ol start="23">
<li><strong>函数 LAST_DAY</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：LAST_DAY(date)
</code></pre>
<p>功能：返回 date 所在月最后一天的日期,date 是日期类型(DATE)或时间戳类型(TIMESTAMP)，返回类型与 date 相同。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT LAST_DAY(SYSDATE) "Days Left";
</code></pre>
<p>查询结果为：如：当前日期为 2003 年 2 月的某一天，则结果为 2003-02-28</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT LAST_DAY(TIMESTAMP '2000-01-11 12:00:00');
</code></pre>
<p>查询结果为：2000-01-31</p>
<ol start="24">
<li><strong>函数 LEAST</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：LEAST(date {,date})
</code></pre>
<p>功能：求一个或多个日期中的最小日期。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT LEAST(date'1999-01-01',date'1998-01-01',date'2000-01-01');
</code></pre>
<p>查询结果为：1998-01-01</p>
<ol start="25">
<li><strong>函数 MINUTE</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：MINUTE(time)
</code></pre>
<p>功能：返回时间中的分钟分量。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT MINUTE('20:10:16');
</code></pre>
<p>查询结果为：10</p>
<ol start="26">
<li><strong>函数 MONTH</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：MONTH(date)
</code></pre>
<p>功能：返回日期中的月份分量。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT MONTH('2002-11-12');
</code></pre>
<p>查询结果为：11</p>
<ol start="27">
<li><strong>函数 MONTHNAME</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：MONTHNAME(date)
</code></pre>
<p>功能：返回日期中月份分量的名称。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT MONTHNAME('2002-11-12');
</code></pre>
<p>查询结果为：November</p>
<ol start="28">
<li><strong>函数 MONTHS_BETWEEN</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：MONTHS_BETWEEN(date1,date2)
</code></pre>
<p>功能：返回 date1 和 date2 之间的月份值。如果 date1 比 date2 晚，返回正值，否则返回负值。如果 date1 和 
date2 这两个日期为同一天，或者都是所在月的最后一天，则返回整数，否则返回值带有小数。date1 和 date2 
是日期类型(DATE)或时间戳类型(TIMESTAMP)。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT MONTHS_BETWEEN(DATE '1995-02-28', DATE '1995-01-31') "Months";
</code></pre>
<p>查询结果为：1.0</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT MONTHS_BETWEEN(TIMESTAMP '1995-03-28 12:00:00', TIMESTAMP '1995-01-31 12:00:00') "Months";
</code></pre>
<p>查询结果为：1.90322580645161（具体返回值可能因为小数点后面保留位数的不同而有细微差别）</p>
<ol start="29">
<li><strong>函数 NEXT_DAY</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：NEXT_DAY(date,char)
</code></pre>
<p>功能：返回在日期 date 之后满足由 char 给出的条件的第一天。char 指定了一周中的某一个天(星期几)，返回值的时间分量与 date 相同，char 是大小写无关的。</p>
<p>Char 取值如表 8.3.2 所示。</p>
<center>表8.3.2 星期描述说明</center>
<table>
 <colgroup><col>
 </colgroup><tbody><tr>
     <td style="text-align:center"><b>输入值</b></td>
     <td style="text-align:center"><b>含义</b></td>
 </tr>
 <tr>
  <td>SUN</td>
  <td rowspan="2">星期日</td>
 </tr>
 <tr>
  <td>SUNDAY</td>
 </tr>
 <tr>
  <td>MON</td>
  <td rowspan="2">星期一</td>
 </tr>
 <tr>
  <td>MONDAY</td>
 </tr>
 <tr>
  <td>TUES</td>
  <td rowspan="2">星期二</td>
 </tr>
 <tr>
  <td>TUESDAY</td>
 </tr>
 <tr>
  <td>WED</td>
  <td rowspan="2">星期三</td>
 </tr>
 <tr>
  <td>WEDNESDAY</td>
 </tr>
 <tr>
  <td>THURS</td>
  <td rowspan="2">星期四</td>
 </tr>
 <tr>
  <td>THURSDAY</td>
 </tr>
 <tr>
  <td>FRI</td>
  <td rowspan="2">星期五</td>
 </tr>
 <tr>
  <td>FRIDAY</td>
 </tr>
 <tr>
  <td>SAT</td>
  <td rowspan="2">星期六</td>
 </tr>
 <tr>
  <td>SATURDAY</td>
 </tr>
</tbody></table>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT NEXT_DAY(DATE '2001-08-02', 'MONDAY');
</code></pre>
<p>查询结果为：2001-08-06</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT NEXT_DAY('2001-08-02 12:00:00', 'FRI');
</code></pre>
<p>查询结果为：2001-08-03</p>
<ol start="30">
<li><strong>函数 NOW</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：NOW(n)
</code></pre>
<p>功能：返回系统的当前时间戳。等价于 GETDATE()。</p>
<p>参数：n：指定小数秒精度。取值范围 0~6，缺省为 6。</p>
<ol start="31">
<li><strong>函数 QUARTER</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：QUARTER(date)
</code></pre>
<p>功能：返回日期在所处年中的季度数。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT QUARTER('2002-08-01');
</code></pre>
<p>查询结果为：3</p>
<ol start="31">
<li><strong>函数 SECOND</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：SECOND(time)
</code></pre>
<p>功能：返回时间中的秒分量。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT SECOND('08:10:25.300');
</code></pre>
<p>查询结果为：25</p>
<ol start="33">
<li><strong>函数 ROUND</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：ROUND(date[, fmt])
</code></pre>
<p>功能：将日期时间 date 四舍五入到最接近格式参数 fmt 指定的形式。如果没有指定语法的话，到今天正午 
12P.M.为止的时间舍取为今天的日期，之后的时间舍取为第二天 12A.M.。日期时间 12A.M.，为一天的初始时刻。参数 date 
的类型可以是 DATE 或 TIMESTAMP，但应与 fmt 相匹配。函数的返回结果的类型与参数 date 相同。fmt 具体如表 8.3.3
 所示。</p>
<center>表8.3.3 日期时间说明</center>
<table>
<thead>
<tr>
<th><strong>fmt 的格式</strong></th>
<th><strong>含义</strong></th>
<th><strong>date 数据类型</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>cc, scc</td>
<td>世纪，从 1950、2050 等年份的一月一号午夜凌晨起的日期，舍取至下个世纪的一月一号</td>
<td>DATE TIMESTAMP</td>
</tr>
<tr>
<td>syear, syyy, y, yy, yyy, yyyy, year</td>
<td>年，从七月一号午夜凌晨起的日期，舍取至下个年度的一月一号</td>
<td>DATE TIMESTAMP</td>
</tr>
<tr>
<td>Q</td>
<td>季度，从十六号午夜凌晨舍取到季度的第二个月，忽略月中的天数</td>
<td>DATE TIMESTAMP</td>
</tr>
<tr>
<td>month,mon, mm, m, rm</td>
<td>月，从十六号午夜凌晨舍取</td>
<td>DATE TIMESTAMP</td>
</tr>
<tr>
<td>Ww</td>
<td>舍取为与本年第一天星期数相同的最近的那一天</td>
<td>DATE TIMESTAMP</td>
</tr>
<tr>
<td>W</td>
<td>舍取为与本月第一天星期数相同的最近的一天</td>
<td>DATE TIMESTAMP</td>
</tr>
<tr>
<td>iw</td>
<td>舍取为最近的周一</td>
<td>DATE TIMESTAMP</td>
</tr>
<tr>
<td>ddd, dd, j</td>
<td>从正午起，舍取为下一天，默认值</td>
<td>DATE TIMESTAMP</td>
</tr>
<tr>
<td>day, dy, d</td>
<td>星期三正午起，舍取为下个星期天</td>
<td>DATE TIMESTAMP</td>
</tr>
<tr>
<td>hh, hh12, hh24</td>
<td>在一个小时的 30 分 30 秒之后的时间舍取为下一小时</td>
<td>TIME TIMESTAMP</td>
</tr>
<tr>
<td>Mi</td>
<td>在一个分钟 30 秒之后的时间舍取为下一分</td>
<td>TIME TIMESTAMP</td>
</tr>
</tbody>
</table>
<p>有关 ww 和 w 的计算进一步解释如下(下面的时间仅当 date 参数为时间戳时才有效)：</p>
<p>ww 
产生与本年第一天星期数相同的最近的日期。因为每两个星期数相同日期之间相隔六天，这意味着舍取结果在给定日期之后三天以内。例如，如果本年第一天为星期
二，若给定日期在星期五午夜 23:59:59 之前(包含星期五 
23:59:59)，则舍取为本星期的星期二的日期；否则舍取为下星期的星期二的日期。</p>
<p>w 计算的方式类似，不是产生最近的星期一 00:00:00，而是产生与本月第一天相同的星期数的日期。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ROUND(DATE '1992-10-27', 'scc');
</code></pre>
<p>查询结果为：2001-01-01</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ROUND(DATE '1992-10-27', 'YEAR') "FIRST OF THE YEAR";
</code></pre>
<p>查询结果为：1993-01-01</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ROUND(DATE '1992-10-27', 'q');
</code></pre>
<p>查询结果为：1992-10-01</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ROUND(DATE '1992-10-27', 'month');
</code></pre>
<p>查询结果为：1992-11-01</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ROUND(TIMESTAMP '1992-10-27 11:00:00', 'ww');
</code></pre>
<p>查询结果为：1992-10-28 00:00:00.000000</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ROUND(TIMESTAMP '1992-10-27 11:00:00', 'w');
</code></pre>
<p>查询结果为：1992-10-29 00:00:00.000000</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ROUND(TIMESTAMP '1992-10-27 12:00:01', 'ddd');
</code></pre>
<p>查询结果为：1992-10-28 00:00:00.000000</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ROUND(DATE '1992-10-27', 'day');
</code></pre>
<p>查询结果为：1992-10-25</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ROUND(TIMESTAMP '1992-10-27 12:00:31', 'hh');
</code></pre>
<p>查询结果为：1992-10-27 12:00:00.000000</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ROUND(TIMESTAMP '1992-10-27 12:00:31', 'mi');
</code></pre>
<p>查询结果为：1992-10-27 12:01:00.000000</p>
<ol start="34">
<li><strong>函数 TIMESTAMPADD</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：TIMESTAMPADD(datepart,n,timestamp)
</code></pre>
<p>功能：返回时间戳 timestamp 加上 n 个 datepart 指定的时间段的结果，datepart 取值见表 8.3.1。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TIMESTAMPADD(SQL_TSI_FRAC_SECOND, 5, '2003-02-10 08:12:20.300' );
</code></pre>
<p>查询结果为：2003-02-10 08:12:20.305000</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TIMESTAMPADD(SQL_TSI_YEAR, 30, DATE '2002-01-01');
</code></pre>
<p>查询结果为：2032-01-01 00:00:00.000000</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TIMESTAMPADD(SQL_TSI_QUARTER, 2, TIMESTAMP '2002-01-01 12:00:00');
</code></pre>
<p>查询结果为：2002-07-01 12:00:00.000000</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TIMESTAMPADD(SQL_TSI_DAY, 40, '2002-12-01 12:00:00');
</code></pre>
<p>查询结果为：2003-01-10 12:00:00.000000</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TIMESTAMPADD(SQL_TSI_WEEK, 1, '2002-01-30');
</code></pre>
<p>查询结果为：2002-02-06 00:00:00.000000</p>
<ol start="35">
<li><strong>函数 TIMESTAMPDIFF</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：TIMESTAMPDIFF(datepart,timestamp1,timestamp2)
</code></pre>
<p>功能：返回一个表明 timestamp2 与 timestamp1 之间的指定 datepart 类型的时间间隔的整数，datepart 取值见表 8.3.1。</p>
<p>注：当结果超出整数值范围，TIMESTAMPDIFF 产生错误。对于秒级 SQL_TSI_SECOND，最大数是 68 年。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TIMESTAMPDIFF(SQL_TSI_FRAC_SECOND,
'2003-02-14 12:10:10.000', '2003-02-14 12:09:09.300');
</code></pre>
<p>查询结果为：-60700</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TIMESTAMPDIFF(SQL_TSI_QUARTER, '2003-06-01', DATE '2002-01-01');
</code></pre>
<p>查询结果为：-5</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TIMESTAMPDIFF(SQL_TSI_MONTH, '2001-06-01', DATE '2002-01-01');
</code></pre>
<p>查询结果为：7</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TIMESTAMPDIFF(SQL_TSI_WEEK, DATE '2003-02-07',DATE '2003-02-14');
</code></pre>
<p>查询结果为：1</p>
<ol start="36">
<li><strong>函数 SYSDATE</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法: SYSDATE()
</code></pre>
<p>功能： 获取系统当前时间。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT SYSDATE();
</code></pre>
<p>查询结果为：当前系统时间</p>
<ol start="37">
<li><strong>函数 TO_DATE/TO_TIMESTAMP/TO_TIMESTAMP_TZ</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：TO_DATE(char [,fmt[,'nls']]) 
或
TO_TIMESTAMP(char [,fmt[,'nls']]) 
或
TO_TIMESTAMP_TZ(char [,fmt])
</code></pre>
<p>功能：将 CHAR 或者 VARCHAR 类型的值转换为 DATE/TIMESTAMP 数据类型。TO_DATE 的结果不带小数秒精度，TO_TIMESTAMP 的结果带 6 位小数秒精度。TO_TIMESTAMP_TZ 的结果带上服务器的时区。</p>
<p>参数：</p>
<p>NLS：指定日期时间串的语言类型：AMERICAN、ENGLISH 和 SIMPLIFIED 
CHINESE，分别表示美语，英语和简体中文。其中，AMERICAN 和 ENGLISH 的效果相同。缺省为 SIMPLIFIED 
CHINESE。 这个参数的使用形式是：“NLS_DATE_LANGUAGE=''语言类型''”。</p>
<p>FMT：日期格式。具体用法请参考<a href="#日期格式fmt">日期格式</a>。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_date(' 20200215 14.47.38','YYYY-MM-DD HH24:MI:SS');
</code></pre>
<p>查询结果为：2020-02-15 14:47:38</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_date(' 20200215 14.47.38','YYYY-MM-DD HH24:MI:SS','NLS_DATE_LANGUAGE=''AMERICAN''');
</code></pre>
<p>查询结果为：2020-02-15 14:47:38</p>
<p><strong>日期格式</strong></p>
<p>日期格式在很多地方都会用到。例如，置当前会话的日期串格式和 TO_DATE/TO_TIMESTAMP/TO_TIMESTAMP_TZ 函数中，此处统一介绍用法。</p>
<p>日期格式有三种写法：DATE 格式、TIME 格式或 TIMESTAMP 格式。其中，TIMESTAMP 格式写法为 DATE 格式 
+TIME 格式。DATE 格式为年月日、月日年或日月年，各部分之间可以有分隔符或者没有分隔符，DATE 的分隔符下文有详细介绍；TIME 
格式为：时分或时分秒，TIME 分隔符只能为":"。例如'YYYY/MM/DD'、'YYYYMMDD 
HH24:MI:SS'、'HH24:MI'，其中 YYYYMMDD、HH24MISS 为格式符；/:为分割符。DM 缺省的日期格式 FMT 
为：'YYYY-MM-DD HH:MI:SS.FF6'。</p>
<p>日期格式书写需遵循特定的书写规则。日期格式由格式符、分隔符和 FX 固定格式器组成。其中 FX 固定格式器为可选项。下面分别介绍。</p>
<ul>
<li><strong>格式符</strong></li>
</ul>
<p>日期格式 FMT 中的格式符由年、月、日、时、分、秒等元素组成。详细的元素介绍，参见表 8.3.4。</p>
<center>表8.3.4 格式符</center>
<table>
<thead>
<tr>
<th><strong>元素</strong></th>
<th><strong>说明</strong></th>
<th><strong>区别</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>D</td>
<td>周中的某一天，星期天算起</td>
<td></td>
</tr>
<tr>
<td>DD</td>
<td>月中的某一天</td>
<td></td>
</tr>
<tr>
<td>DDD</td>
<td>年中的某一天</td>
<td></td>
</tr>
<tr>
<td>HH HH12 HH24</td>
<td>天中的时(0－23)。 HH，HH12 为 12 小时制。HH24 为 24 小时制</td>
<td></td>
</tr>
<tr>
<td>MI</td>
<td>分(0－59)</td>
<td></td>
</tr>
<tr>
<td>MM</td>
<td>月(01－12)</td>
<td></td>
</tr>
<tr>
<td>SS</td>
<td>秒(0－59)</td>
<td></td>
</tr>
<tr>
<td>SSSSS</td>
<td>一天从午夜开始的累积秒数(0-86399)</td>
<td></td>
</tr>
<tr>
<td>TZH</td>
<td>时区中的小时，例如'HH:MI:SS FF TZH:TZM'</td>
<td></td>
</tr>
<tr>
<td>TZM</td>
<td>时区中的分钟</td>
<td></td>
</tr>
<tr>
<td>FF[1…9]</td>
<td>小数秒精度，[1…9]指定小数秒精度，不指定时缺省为 9</td>
<td></td>
</tr>
<tr>
<td>SSXFF</td>
<td>X 表示秒和小数秒的间隔，等价于.</td>
<td></td>
</tr>
<tr>
<td>YYYY</td>
<td>4 位的年份</td>
<td></td>
</tr>
<tr>
<td>YY</td>
<td>年份的最后 2 位数字</td>
<td></td>
</tr>
<tr>
<td>Y</td>
<td>年份的最后 1 位数字</td>
<td></td>
</tr>
<tr>
<td>AD/A.D.</td>
<td>公元,不能为 0</td>
<td></td>
</tr>
<tr>
<td>AM/A.M.</td>
<td>上午</td>
<td></td>
</tr>
<tr>
<td>BC/B.C.</td>
<td>公元前</td>
<td></td>
</tr>
<tr>
<td>CC/SCC</td>
<td>世纪</td>
<td>不适用于 TO_DATE 中</td>
</tr>
<tr>
<td>DAY</td>
<td>星期（如星期五或 FRIDAY）</td>
<td></td>
</tr>
<tr>
<td>DL</td>
<td>返回长日期格式，包括年月日和星期几</td>
<td></td>
</tr>
<tr>
<td>DS</td>
<td>返回短日期格式，包括年月日</td>
<td></td>
</tr>
<tr>
<td>DY</td>
<td>星期的缩写形式（如星期五或 FRI）</td>
<td></td>
</tr>
<tr>
<td>IW</td>
<td>星期数（当前日期所在星期是这一年的第几个星期，基于 ISO 标准）</td>
<td>不适用于 TO_DATE 中</td>
</tr>
<tr>
<td>MON</td>
<td>月份名称的缩写形式(如 12 月或 DEC)</td>
<td></td>
</tr>
<tr>
<td>MONTH</td>
<td>月份名称（如 12 月或 DECEMBER）</td>
<td></td>
</tr>
<tr>
<td>PM/P.M.</td>
<td>下午</td>
<td></td>
</tr>
<tr>
<td>Q</td>
<td>季度号（1、2、3、4）</td>
<td>不适用于 TO_DATE 中</td>
</tr>
<tr>
<td>RR/RRRR</td>
<td>RR:输入参数年份的 2 位数字和数据库服务器上当前年的后 2 位数字(当年)共同确定 当指定的两位年份数字在 00~49 
之间时：若当前年的后两位数字在 00~49 之间，则返回年份的前两位数字和当前年的前两位数字相同；若当前年的后两位数字在 50~99 
之间，则返回年份的前两位数字为当前年的前两位数字加 1 当指定的两位年份数字在 50~99 之间时：若当前年份的后两位数字在 00~49 
之间，则返回年份的前两位数字为当前年的前两位数字减 1；若当前年的后两位数字在 50~99 
之间，则返回年份的前两位数字和当前年的前两位数字相同。 只有后面无其他分隔符且有其它格式符的情况才最多处理两位数字的年份。如:rrmm 
RRRR：如果输入参数只有两位，则同 RR，否则同 YYYY 作用</td>
<td></td>
</tr>
<tr>
<td>WW</td>
<td>星期数（当前日期所在星期是这一年的第几个星期，第一个星期从 1 月 1 日开始，到 1 月 7 日结束）</td>
<td></td>
</tr>
<tr>
<td>W</td>
<td>星期数（当前日期所在星期是这个月的第几个星期）</td>
<td></td>
</tr>
<tr>
<td>Y,YYY</td>
<td>带逗号的年份，ISO 标准年份。</td>
<td></td>
</tr>
<tr>
<td>IYYY,IYY,IY,I</td>
<td>最后倒数 4 位，3 位，2 位，1 位 ISO 标准年份。 ISO 标准认为日期是从周一到周日，按周计算。普通的标准则指定任何一年的一月一号都是周一</td>
<td>不适用于 TO_DATE 中</td>
</tr>
<tr>
<td>YYYY/SYYYY</td>
<td>ISO 标准年份，S 前缀表示公元前 BC</td>
<td></td>
</tr>
<tr>
<td>YEAR/SYEAR</td>
<td>拼写出的年份（比如 TWENTY FIFTEEN）S 前缀表示负年</td>
<td>不适用于 TO_DATE 中</td>
</tr>
</tbody>
</table>
<ul>
<li><strong>DATE 分隔符</strong></li>
</ul>
<p>下面介绍 DATE 
格式中用到的分隔符。分隔符分为两种：一是非限定分隔符，通常指除大小写字母、数字以及双引号之外的所有单字节字符且可打印的。例如:空格、回车键、
tab 键、- / , . : *等标点符号。单个双引号 “可以作为原串的分隔符，但是不能在 FMT 
中作分割符。二是限定分隔符，指由双引号括起来的任意长度串，比如中文。例如“年”“月”“日”里的年、月、日。</p>
<p>to_date/TO_TIMESTAMP/TO_TIMESTAMP_TZ 函数目前支持的分隔符的规则如下：</p>
<ol>
<li>分隔符均包括尾空格，把尾空格全部当作分隔符，但不包括头空格，原串中对应分隔符处忽略头空格。分隔符没有尾空格，原串多出来的后面空格忽略。tab 键与回车键也是如此。</li>
</ol>
<p>例 1</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">select to_date('2001:  10:10','yyyy:mm:dd') from dual;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">TO_DATE('2001:10:10','yyyy:mm:dd')
----------------------------------
2001-10-10 00:00:00
</code></pre>
<p>例 2</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">select to_date('2001--10:10','yyyy**mm:dd') from dual;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">TO_DATE('2001--10:10','yyyy**mm:dd')
-----------------------------------------------------
2001-10-10 00:00:00
</code></pre>
<ol start="2">
<li>原串中对应位置非限定分隔符的个数小于等于 FMT 中对应位置非限定分隔符的个数。</li>
</ol>
<p>如果 FMT 设置了某个位置有连续 n 个（n&gt;=1）非限定分隔符，非限定分隔符去除头空格后长度为 m（m&gt;=1），则原串对应位置的非限定分隔符要小于等于 m 个。</p>
<p>例如，FMT 中第二个分隔符为 3 个连续的：，那么原串对应位置的分隔符要小于等于 3 个。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">select to_date('2001-10--10','yyyy:mm:::dd') from dual;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">TO_DATE('2001-10--10','yyyy:mm:::dd')
-----------------------------------------------
2001-10-10 00:00:00
</code></pre>
<ol start="3">
<li>原串中对应位置限定分隔符的个数必须等于 FMT 中实际限定分隔符的个数。</li>
</ol>
<p>如果 FMT 设置了连续 n 个（n&gt;=1）限定分隔符，限定分隔符去除头空格后长度为 m（m&gt;=1），则源串对应位置必须有 m 个限定分隔符。</p>
<p>例 FMT 中指定了“猪年”或“猪年”作为实际限定分隔符，那么原串中也要指定相同的“猪年”。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">select to_date('2019猪年10月10日','yyyy"猪年"mm"月"dd"日"') from dual;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">TO_DATE('2019猪年10月10日','yyyy"猪年"mm"月"dd"日"')
-----------------------------------------------------
2019-10-10 00:00:00
</code></pre>
<p>或</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SQL&gt; select to_date('2019猪年10月10日','yyyy"  猪年"mm"月"dd"日"') from dual;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">TO_DATE('2019猪年10月10日','yyyy"猪年"mm"月"dd"日"')
----------------------------------------------------
2019-10-10 00:00:00
</code></pre>
<ol start="4">
<li>原串中相应位置（限定 + 非限定）分隔符的个数要等于 FMT 中相应位置限定分隔符的个数。</li>
</ol>
<p>如果 FMT 某个位置设置了连续 n 个（n 大于等于 1）非限定分隔符 + 限定分割符，限定分隔符去除头空格后长度为 m（m 大于等于 1），则源串对应位置必须有 m 个非限定分隔符。（限定 + 非限定）分隔符组合中，非限定符不允许改变。</p>
<p>例 -3 月和"-mm"月，-29 日和-dd"日"个数，限定符都需满足严格匹配。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">select to_date('2019年-3月-29日','yyyy"年"-mm"月"-dd"日"') from dual;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">TO_DATE('2019年-3月-29日','yyyy"年"-mm"月"-dd"日"')
--------------------------------------------------
2019-03-29 00:00:00
</code></pre>
<ol start="5">
<li>如果 FMT 中只包含非限定分隔符，则原串中对应位置可以有与分隔符内容不相同的分隔符匹配。</li>
</ol>
<p>如果 FMT 中只包含限定分隔符，则源串中对应位置必须有与实际分隔符内容相同的串匹配。</p>
<p>如果 FMT 中既包含限定分隔符，又包含非限定分隔符(不分顺序)，则原串中对应位置必须有与实际分隔符内容相同的串匹配。</p>
<p>例 以下是 FMT 中只包含非限定分隔符的情况。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">select to_date('2001:1010','yyyy-mmdd') from dual;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">TO_DATE('2001:1010','yyyy-mmdd')
-----------------------------------------------
2001-10-10 00:00:00  
</code></pre>
<ol start="6">
<li>如果 FMT 未设置分隔符，则源串对应位置不能有除空格外的分隔符，如果 FMT 中只有空格，则源串对应位置可以有空格，也可以没有。</li>
</ol>
<p>例 1  以下为 FMT 只有空格的情况。</p>
<p>select to_date('200112   10','yyyy  mmdd') from dual;</p>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">TO_DATE('20011210','yyyymmdd')
-------------------------------------------
2001-12-10 00:00:00
</code></pre>
<p>例 2 以下为 FMT 未设置分隔符的情况。</p>
<p>select to_date('200112     10','yyyymmdd') from dual;</p>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">TO_DATE('20011210','yyyymmdd')
---------------------------------------------
2001-12-10 00:00:00
</code></pre>
<ol start="7">
<li>对于 TO_DATE/TO_TIMESTAMP/TO_TIMESTAMP_TZ 来说，如果 FMT 格式符 XFF 前同时出现非限定分隔符.，不论有多少个.，分隔符.都会被忽略，只都相当于一个 XFF。</li>
</ol>
<p>例 1 在 TO_TIMESTAMP 中...XFF 相当于 XFF，以下是...XXF 的情况。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_TIMESTAMP ('10秒.123000', 'SS"秒"...XFF') FROM DUAL;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">TO_TIMESTAMP('10秒.123000','SS"秒"...XFF')
----------------------------------------------------
2019-01-01 00:00:10.123000
</code></pre>
<p>例 2 以下是.XFF 的情况。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_TIMESTAMP ('10.123000', 'SS.XFF') FROM DUAL;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">TO_TIMESTAMP('10.123000','SS.XFF')
------------------------------------------------
2019-01-01 00:00:10.123000
</code></pre>
<ol start="8">
<li>源串中的数据不能多于 FMT 中格式符指定的位数。结尾可以少于 FMT 对应的位数。</li>
</ol>
<ul>
<li><strong>FX 固定格式器</strong></li>
</ul>
<p>FX 是 FMT 固定格式全局修改器。使用了 FX 之后，要求源串对应位置的内容必须和 FMT 中 FX 之后的格式严格匹配。FX 可以出现在任何分隔符可以出现的位置。</p>
<p>FX 专门应用于含有限定分隔符的或 fx 标记的 FMT 中。只有全是非限定分隔符的 FMT 或者属于快速格式的 FMT 中，FX 
不起作用。快速格式的 FMT 共 12 种，分别为：YYYY-MM-DD(YYYY/MM/DD)、YYYY-DD-MM 
(YYYY/DD/MM)、MM-DD-YYYY (MM/DD/YYYY)、MM-YYYY-DD(MM/YYYY/DD)、DD-MM-YYYY 
(DD/MM/YYYY)、DD-YYYY-MM(DD/YYYY/MM)、HH:MI:SS、SS:MI:HH、YYYY-MM-DD 
HH:MI:SS (YYYY/MM/DDHH:MI:SS)、YYYY-MM-DD HH:MI:SS.ff[n] (YYYY/MM/DD 
HH:MI:SS[n])、YYYYMMDD、YYYYMMDD HH:MI:SS。</p>
<p>例 1  无 FX 情况下，源串格式和 FMT 不需要完全匹配（非限定分隔符个数少于等于源串、非限定分隔符内容不同,固定格式位数不一样等模糊匹配），也能执行成功。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_DATE('19年08月01','yyyy"年"mm"月"dd') FROM DUAL;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">TO_DATE('19年08月01','yyyy"年"mm"月"dd')
----------------------------------------------------------
 19-08-01 00:00:00
</code></pre>
<p>例 2  有 FX 情况下，源串格式和 FMT 没有完全匹配，报错：文字与格式字符串不匹配。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_DATE('19年08月01','fxyyyy"年"mm"月"dd') FROM DUAL;
</code></pre>
<p>查询结果报错：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">[-6130]:文字与格式字符串不匹配.
</code></pre>
<p>例 3  有 FX 情况下，FX 位于 FMT 最前端，此时源串格式需要和 FMT 完全匹配，才能执行成功。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_DATE('2019年08月01','fxyyyy"年"mm"月"dd') FROM DUAL;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">TO_DATE('2019年08月01','fxyyyy"年"mm"月"dd')
------------------------------------------------------
2019-08-01 00:00:00
</code></pre>
<ol start="38">
<li><strong>函数 FROM_TZ</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：FROM_TZ(timestamp,timezone|tz_name])
</code></pre>
<p>功能：将时间戳类型 timestamp 和时区类型 timezone（或时区名称 tz_name）转化为 timestamp<br>
with timezone 类型 。</p>
<p>timestamp 缺省的日期语法为："YYYYMMDD HH:MI:SS"或者"YYYYMMDD "。</p>
<p>时区设置范围为：-12:59~+14:00。</p>
<p>时区名：ASIA/HONG_KONG（即 +08:00）。</p>
<p>例 1 使用时区</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT FROM_TZ(TO_TIMESTAMP('20091101 09:10:21','YYYYMMDD HH:MI:SS '),'+09:00');
</code></pre>
<p>查询结果为：2009-11-01 09:10:21.000000 +09:00</p>
<p>例 2  使用时区名</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT FROM_TZ(TO_TIMESTAMP('20091101','YYYYMMDD'),'ASIA/HONG_KONG') ;
</code></pre>
<p>查询结果为：2009-11-01 00:00:00.000000 +08:00</p>
<p>例 3  不指定格式</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">select from_tz('20091101', 'ASIA/HONG_KONG');
</code></pre>
<p>查询结果为：2009-11-01 00:00:00.000000 +08:00</p>
<ol start="39">
<li><strong>函数 TZ_OFFSET</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：TZ_OFFSET(timezone|[tz_name])
</code></pre>
<p>功能：返回给定的时区和标准时区(UTC)的偏移量。</p>
<p>TZ_OFFSET 的参数可以是：</p>
<ol>
<li>一个合法的时区名，支持下列时区：<br>
{"Asia/Hong_kong", "+8:00"}：香港时间<br>
{"US/Eastern", "-4:00"}：美国东部时间<br>
{"Asia/Chongqing", "+08:00"}：重庆时间<br>
{"Etc/GMT-8", "+08:00"}：东八区<br>
{"Asia/Urumqi", "+08:00"}：乌鲁木齐时间<br>
{"Asia/Taipei", "+08:00"}：台北时间<br>
{"Asia/Macao", "+08:00"}：澳门时间<br>
{"Asia/Kashgar", "+08:00"}：喀什时间<br>
{"Asia/Harbin", "+08:00"}：哈尔滨时间<br>
{"Singapore", "+08:00"}：新加坡时间<br>
{"PRC", "+08:00"}：中国标准时间</li>
<li>一个与 UTC 标准时区的时间间隔</li>
<li>SESSIONTIMEZONE 或 DBTIMEZONE</li>
</ol>
<p>例 1 TZ_OFFSET 的参数为 DBTIMEZONE</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TZ_OFFSET(DBTIMEZONE);
</code></pre>
<p>查询结果为：+08:00</p>
<p>例 2 TZ_OFFSET 的参数为 US/Eastern</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TZ_OFFSET('US/Eastern');
</code></pre>
<p>查询结果为：-04:00</p>
<ol start="40">
<li><strong>函数 TRUNC</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：TRUNC(date[, fmt])
</code></pre>
<p>功能：将日期时间 date 截断到最接近格式参数 fmt 指定的形式。若 fmt 缺省，则返回当天日期。语法与 ROUND 类似，但结果是直接截断，而不是四舍五入。参数及函数的返回类型与 ROUND 相同。参见 ROUND。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TRUNC(DATE '1992-10-27', 'scc');
</code></pre>
<p>查询结果为：1901-01-01</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TRUNC(DATE '1992-10-27', 'YEAR') "FIRST OF THE YEAR";
</code></pre>
<p>查询结果为：1992-01-01</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TRUNC(DATE '1992-10-27', 'q');
</code></pre>
<p>查询结果为：1992-10-01</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TRUNC(DATE '1992-10-27', 'month');
</code></pre>
<p>查询结果为：1992-10-01</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TRUNC(TIMESTAMP '1992-10-27 11:00:00', 'ww');
</code></pre>
<p>查询结果为：1992-10-21 00:00:00.000000</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TRUNC(TIMESTAMP '1992-10-27 11:00:00', 'w');
</code></pre>
<p>查询结果为：1992-10-22 00:00:00.000000</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TRUNC(TIMESTAMP '1992-10-27 12:00:01', 'ddd');
</code></pre>
<p>查询结果为：1992-10-27 00:00:00.000000</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TRUNC(DATE '1992-10-27', 'day');
</code></pre>
<p>查询结果为：1992-10-25</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TRUNC(TIMESTAMP '1992-10-27 12:00:31', 'hh');
</code></pre>
<p>查询结果为：1992-10-27 12:00:00.000000</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TRUNC(TIMESTAMP '1992-10-27 12:00:31', 'mi');
</code></pre>
<p>查询结果为：1992-10-27 12:00:00.000000</p>
<ol start="41">
<li><strong>函数 WEEK</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：WEEK(date)
</code></pre>
<p>功能：返回指定日期属于所在年中的第几周。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT WEEK(DATE '2003-02-10');
</code></pre>
<p>查询结果为：7</p>
<ol start="42">
<li><strong>函数 WEEKDAY</strong></li>
</ol>
<p>语法：WEEKDAY(date)</p>
<p>功能：返回指定日期的星期值。如果是星期日则返回 0。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT WEEKDAY(DATE '1998-10-26');
</code></pre>
<p>查询结果为：1</p>
<ol start="43">
<li><strong>函数 WEEKS_BETWEEN</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：WEEKS_BETWEEN(date1,date2)
</code></pre>
<p>功能：返回两个日期之间相差周数。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT WEEKS_BETWEEN(DATE '1998-2-28', DATE '1998-10-31');
</code></pre>
<p>查询结果为：-35</p>
<ol start="44">
<li><strong>函数 YEAR</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：YEAR(date)
</code></pre>
<p>功能：返回日期中的年分量。</p>
<p><strong>例</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT YEAR(DATE '2001-05-12');
</code></pre>
<p>查询结果为：2001</p>
<ol start="45">
<li><strong>函数 YEARS_BETWEEN</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：YEARS_BETWEEN(date1,date2)
</code></pre>
<p>功能：返回两个日期之间相差年数。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT YEARS_BETWEEN(DATE '1998-2-28', DATE '1999-10-31');
</code></pre>
<p>查询结果为： -1</p>
<ol start="46">
<li><strong>函数 LOCALTIME</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：LOCALTIME (n)
</code></pre>
<p>功能：返回当前时间值，结果类型为 TIME。</p>
<p>参数：n：指定小数秒精度。取值范围 0~6，缺省为 6。</p>
<ol start="47">
<li><strong>函数 LOCALTIMESTAMP</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：LOCALTIMESTAMP (n)
</code></pre>
<p>功能：返回当前日期时间值，结果类型为 TIMESTAMP。</p>
<p>参数：n：指定小数秒精度。取值范围 0~6，缺省为 6。</p>
<ol start="48">
<li><strong>函数 OVERLAPS</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：OVERLAPS (date1,date2,date3,date4)
</code></pre>
<p>功能：返回两个时间段是否存在重叠，date1 为 datetime 类型、date2 可以为 datetime 类型也可以为 
interval 类型，date3 为 datetime 类型，date4 可为 datetime 类型，也可以 interval 
类型，判断(date1,date2),(date3,date4)有无重叠。其中 date2 与 date4 类型必须一致，如果 date2 为 
interval<br>
year to month，date4 也必须是此类型。结果类型为 BIT，若两个时间段存在重叠返回 1，不重叠返回 0。</p>
<p>例 以下为 date1、date2、date3、date4 分别取 datetime 或 interval 类型的情况。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT OVERLAPS('2011-10-3','2011-10-9','2011-10-6','2011-10-13');
</code></pre>
<p>查询结果为：1</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT OVERLAPS('2011-10-3','2011-10-9','2011-10-10','2011-10-11');
</code></pre>
<p>查询结果为：0</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT OVERLAPS('2011-10-3',INTERVAL '09 23' DAY TO HOUR,'2011-10-10',INTERVAL'09 23' DAY TO HOUR);
</code></pre>
<p>查询结果为：1</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT OVERLAPS('2011-10-3',INTERVAL '01 23' DAY TO HOUR,'2011-10-10',INTERVAL'09 23' DAY TO HOUR);
</code></pre>
<p>查询结果为：0</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT OVERLAPS('2011-10-3',INTERVAL '1' YEAR TO MONTH,'2012-10-10',INTERVAL
'1-1' YEAR TO MONTH);
</code></pre>
<p>查询结果为：0</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT OVERLAPS('2011-10-3',INTERVAL '2' YEAR TO MONTH,'2012-10-10',INTERVAL
'1-1' YEAR TO MONTH);
</code></pre>
<p>查询结果为：1</p>
<p>49.<strong>函数 TO_CHAR</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：TO_CHAR(date[,fmt[,nls]])
</code></pre>
<p><strong>图例</strong></p>
<p>函数 TO_CHAR（日期数据类型）</p>
<p><img src="%E5%87%BD%E6%95%B0%20%E8%BE%BE%E6%A2%A6%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3_files/%25E5%2587%25BD%25E6%2595%25B0TO_CHAR%25EF%25BC%2588%25E6%2597%25A5%25E6%259C%259F%25E6%2595%25B.jpg" alt="函数 TO_CHAR（日期数据类型）"></p>
<p>功能：将日期数据类型 DATE 转换为一个在日期格式（FMT）中指定语法的 VARCHAR 类型字符串。若没有指定语法，日期 DATE 将按照缺省的语法转换为一个 VARCHAR 值。</p>
<p>FMT，NLS 的用法请参考函数 TO_DATE/TO_TIMESTAMP/TO_TIMESTAMP_TZ 用法。</p>
<p>DM 缺省的日期格式 FMT 为：'YYYY-MM-DD HH:MI:SS.FF6'。</p>
<p>例 以下是将 DATE 类型数据分别转换为指定 FMT 格式的字符串的情况。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_CHAR(SYSDATE,'YYYYMMDD');  //SYSDATE为系统当前时间
</code></pre>
<p>查询结果为：20110321</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_CHAR(SYSDATE,'YYYY/MM/DD');
</code></pre>
<p>查询结果为：2011/03/21</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_CHAR(SYSDATE,'HH24:MI');
</code></pre>
<p>查询结果为：16:56</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_CHAR(SYSDATE,'YYYYMMDD HH24:MI:SS');
</code></pre>
<p>查询结果为：20110321 16:56:19</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_CHAR(SYSDATE,'YYYY-MM-DD HH24:MI:SS');
</code></pre>
<p>查询结果为：2011-03-21 16:56:28</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_CHAR(INTERVAL '123-2' YEAR(3) TO MONTH) FROM DUAL;
</code></pre>
<p>查询结果为：INTERVAL '123-2' YEAR(3) TO MONTH</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">select to_char(sysdate(), 'mon', 'NLS_DATE_LANGUAGE = ENGLISH');
</code></pre>
<p>查询结果为：DEC</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">select to_char(sysdate(),'mon','NLS_DATE_LANGUAGE=''SIMPLIFIED CHINESE'' ');
</code></pre>
<p>查询结果为：12 月</p>
<ol start="50">
<li><strong>函数 SYSTIMESTAMP</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：SYSTIMESTAMP (n)
</code></pre>
<p>功能：返回系统当前的时间戳，带数据库的时区信息。结果类型为 TIMESTAMP WITH TIME ZONE。</p>
<p>参数：n：指定小数秒精度。取值范围 0~6，缺省为 6</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT SYSTIMESTAMP();
</code></pre>
<p>查询结果为：2012-10-10 11:06:12.171000 +08:00</p>
<ol start="51">
<li><strong>函数 NUMTODSINTERVAL</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：NUMTODSINTERVAL (number, interval_unit)
</code></pre>
<p>功能：转换一个指定的 DEC 类型到 INTERVAL DAY TO SECOND</p>
<p>参数：</p>
<p>number：任何 dec 类型的值或者可以转换到 dec 类型的表达式</p>
<p>interval_unit：字符串限定 number 的类型： DAY、HOUR、MINUTE、或 SECOND</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT NUMTODSINTERVAL (2.5,'DAY');
</code></pre>
<p>查询结果为：INTERVAL '000000002 12:00:00.000000' DAY(9) TO SECOND(6)</p>
<ol start="52">
<li><strong>函数 NUMTOYMINTERVAL</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：NUMTOYMINTERVAL (number, interval_unit)
</code></pre>
<p>功能：转换一个指定的 DEC 类型值到 INTERVAL YEAR TO MONTH</p>
<p>参数：</p>
<p>number：任何 dec 类型的值或者可以转换到 dec 类型的表达式</p>
<p>interval_unit：字符串限定 number 的类型：YEAR 或 MONTH</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT NUMTOYMINTERVAL (2.5,'YEAR');
</code></pre>
<p>查询结果为：INTERVAL '000000002-06' YEAR(9) TO MONTH</p>
<ol start="53">
<li><strong>函数 WEEK</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：WEEK(date, mode)
</code></pre>
<p>功能：根据指定的 mode 返回日期为所在年的第几周</p>
<p>其中 mode 可取值及其含义见下表。</p>
<center>表8.3.5 mode取值及其含义</center>
<table>
<thead>
<tr>
<th><strong>mode 值</strong></th>
<th><strong>周起始</strong></th>
<th><strong>返回值范围</strong></th>
<th><strong>说明</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td>周日</td>
<td>0~53</td>
<td>本年第一个周日开始为第 1 周，之前算本年第 0 周</td>
</tr>
<tr>
<td>1</td>
<td>周一</td>
<td>0~53</td>
<td>本年第一个周一之前如果超过 3 天则算第 1 周，否则算第 0 周</td>
</tr>
<tr>
<td>2</td>
<td>周日</td>
<td>1~53</td>
<td>本年第一个周日开始为第 1 周，之前算去年第 5x 周</td>
</tr>
<tr>
<td>3</td>
<td>周一</td>
<td>1~53</td>
<td>本年第一个周一之前如果超过 3 天则算第 1 周，否则算去年第 5x 周；年末不足 4 天算明年第 1 周</td>
</tr>
<tr>
<td>4</td>
<td>周日</td>
<td>0~53</td>
<td>本年第一个周日之前如果超过 3 天则算第 1 周，否则算第 0 周</td>
</tr>
<tr>
<td>5</td>
<td>周一</td>
<td>0~53</td>
<td>本年第一个周一开始为第 1 周，之前算本年第 0 周</td>
</tr>
<tr>
<td>6</td>
<td>周日</td>
<td>1~53</td>
<td>本年第一个周日之前如果超过 3 天则算第 1 周，否则算去年第 5x 周；年末不足 4 天算明年第 1 周</td>
</tr>
<tr>
<td>7</td>
<td>周一</td>
<td>1~53</td>
<td>本年第一个周一开始为第 1 周，之前算去年第 5x 周</td>
</tr>
</tbody>
</table>
<p>mode 的取值范围为-2147483648~2147483647，但在系统处理时会取 mode= mode%8。</p>
<p>由于 DM 支持儒略历，并考虑了历史上从儒略历转换至格里高利日期时的异常，不计算'1582-10-05'到'1582-10-14'之间的 10 天，因此 WEEK 函数对于 1582-10-15 之前日期的计算结果不能保证正确性。</p>
<p>例  以下是根据指定的 mode 返回日期为所在年的第几周的情况</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT WEEK('2013-12-31',0);
</code></pre>
<p>查询结果为：52</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT WEEK('2013-12-31',1);
</code></pre>
<p>查询结果为：53</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT WEEK('2013-12-31',2);
</code></pre>
<p>查询结果为：52</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT WEEK('2013-12-31',3);
</code></pre>
<p>查询结果为：51</p>
<ol start="54">
<li><strong>函数 unix_timestamp</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：UNIX_TIMESTAMP (d datetime)
</code></pre>
<p>功能：自标准时区的'1970-01-01 00:00:00 +0:00'到本地会话时区的指定时间的秒数差。如果为空，表示到当前时间。</p>
<p>参数：d 可以是一个 DATETIME、TIME、DATE、timestamp with time zone、timestamp with
 LOCAL time zone 类型（时区忽略，使用当前时区），也可以是一个字符串。或一个 
YYYYMMDD、YYMMDD、YMMDD、YYYMMDD 格式的整形 BIGINT。</p>
<p>例</p>
<p>当前会话时区是 +8:00</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT UNIX_TIMESTAMP(timestamp '1970-01-01 08:00:00');
</code></pre>
<p>查询结果为：0</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT UNIX_TIMESTAMP('1970-01-01 17:00:00');
</code></pre>
<p>查询结果为：32400</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT UNIX_TIMESTAMP( 20120608 );
</code></pre>
<p>查询结果为：1339084800</p>
<ol start="55">
<li><strong>函数 from_unixtime</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法1：FROM_UNIXTIME (unixtime int)（bigint返回null）
</code></pre>
<p>功能：将自'1970-01-01 00:00:00'的秒数差转成本地会话时区的时间戳类型。</p>
<p>unixtime 为需要处理的参数(该参数是 Unix 时间戳)，可以直接是 Unix 时间戳字符串。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">select FROM_UNIXTIME ('539712061');
</code></pre>
<p>查询结果为：1987-02-08 00:01:01</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT FROM_UNIXTIME(1249488000) ;
</code></pre>
<p>查询结果为：2009-08-06 00:00:00</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法2：FROM_UNIXTIME (unixtime int,fmt varchar)
</code></pre>
<p>功能：将自'1970-01-01 00:00:00'的秒数差转成本地会话时区的指定 fmt 格式的时间串。</p>
<p>unixtime 为需要处理的参数(该参数是 Unix 时间戳)，可以直接是 Unix 时间戳字符串(不支持)。</p>
<p>Fmt 见 DATE_FORMAT 中的 format 格式。（表 8.3.6）</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT FROM_UNIXTIME( 1249488000 ,'%D') ;
</code></pre>
<p>查询结果为：6th</p>
<ol start="56">
<li><strong>函数 SESSIONTIMEZONE</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：SESSIONTIMEZONE
</code></pre>
<p>功能：查看当前会话的时区</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT SESSIONTIMEZONE FROM DUAL;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SESSIONTIMEZONE
---------------
+08:00
</code></pre>
<ol start="57">
<li><strong>函数 DBTIMEZONE</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：DBTIMEZONE
</code></pre>
<p>功能：查看当前数据库时区，即安装数据库时操作系统的时区。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DBTIMEZONE FROM DUAL;
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">DBTIMEZONE
---------------
+08:00
</code></pre>
<ol start="58">
<li><strong>函数 DATE_FORMAT</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：DATE_FORMAT (d datetime, format varchar)
</code></pre>
<p>功能：以不同的格式显示日期/时间数据。</p>
<p>参数：</p>
<p>d：可以是可以是一个 DATETIME、TIME、DATE、timestamp with time zone、timestamp with LOCAL time zone 类型（时区忽略，使用当前时区）。</p>
<p>format： 规定日期/时间的输出格式，具体见下表。</p>
<center>表8.3.6 format释义</center>
<table>
<thead>
<tr>
<th><strong>format</strong></th>
<th><strong>释义</strong></th>
<th><strong>备注</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>%a</td>
<td>缩写星期名</td>
<td></td>
</tr>
<tr>
<td>%b</td>
<td>缩写月名</td>
<td></td>
</tr>
<tr>
<td>%c</td>
<td>月，数值(0-12)</td>
<td>暂不支持</td>
</tr>
<tr>
<td>%D</td>
<td>带有英文前缀的月中的天</td>
<td></td>
</tr>
<tr>
<td>%d</td>
<td>月的天，数值(00-31)</td>
<td></td>
</tr>
<tr>
<td>%e</td>
<td>月的天，数值(0-31)</td>
<td>暂不支持</td>
</tr>
<tr>
<td>%f</td>
<td>微秒</td>
<td></td>
</tr>
<tr>
<td>%H</td>
<td>小时 (00-23)</td>
<td></td>
</tr>
<tr>
<td>%h</td>
<td>小时 (01-12)</td>
<td></td>
</tr>
<tr>
<td>%I</td>
<td>小时 (01-12)</td>
<td></td>
</tr>
<tr>
<td>%i</td>
<td>分钟，数值(00-59)</td>
<td></td>
</tr>
<tr>
<td>%j</td>
<td>年的天 (001-366)</td>
<td></td>
</tr>
<tr>
<td>%k</td>
<td>小时 (0-23)</td>
<td>暂不支持</td>
</tr>
<tr>
<td>%l</td>
<td>小时 (1-12)</td>
<td>暂不支持</td>
</tr>
<tr>
<td>%M</td>
<td>月名</td>
<td></td>
</tr>
<tr>
<td>%m</td>
<td>月，数值(00-12)</td>
<td></td>
</tr>
<tr>
<td>%p</td>
<td>AM 或 PM</td>
<td></td>
</tr>
<tr>
<td>%r</td>
<td>时间，12-小时（hh:mm:ss AM 或 PM）</td>
<td></td>
</tr>
<tr>
<td>%S</td>
<td>秒(00-59)</td>
<td></td>
</tr>
<tr>
<td>%s</td>
<td>秒(00-59)</td>
<td></td>
</tr>
<tr>
<td>%T</td>
<td>时间, 24-小时 (hh:mm:ss)</td>
<td></td>
</tr>
<tr>
<td>%U</td>
<td>周 (00-53) 星期日是一周的第一天</td>
<td></td>
</tr>
<tr>
<td>%u</td>
<td>星期(0……52), 这里星期一是星期的第一天</td>
<td>暂不支持</td>
</tr>
<tr>
<td>%W</td>
<td>星期名字（Sunday、Tuesday、Wednesday、Thursday、Friday、Saturday）</td>
<td></td>
</tr>
<tr>
<td>%Y</td>
<td>年, 数字, 4 位</td>
<td></td>
</tr>
<tr>
<td>%y</td>
<td>年, 数字, 2 位</td>
<td></td>
</tr>
<tr>
<td>%%</td>
<td>一个文字“%”</td>
<td></td>
</tr>
</tbody>
</table>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">select date_format(timestamp '1980-1-1 1:1:1.123456789','%Y-%m-%d %H:%i:%s');
</code></pre>
<p>查询结果为：1980-01-01 01:01:01</p>
<ol start="59">
<li><strong>函数 TIME_TO_SEC</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：TIME_TO_SEC (d datetime)
</code></pre>
<p>功能：将时间换算成秒</p>
<p>d 可以是一个 DATETIME、TIME、DATE、timestamp with time zone、timestamp with LOCAL time zone 类型（时区忽略，使用当前时区）。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">select time_to_sec(timestamp '1900-1-1 23:59:59 +8:00');
</code></pre>
<p>查询结果为：86399</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">select time_to_sec(time '23:59:59');
</code></pre>
<p>查询结果：86399</p>
<ol start="60">
<li><strong>函数 SEC_TO_TIME</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：SEC_TO_TIME (sec numeric)
</code></pre>
<p>功能：将秒换算成时间，sec 的取值范围为-838:59:59~838:59:59。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">select sec_to_time(104399);
</code></pre>
<p>查询结果： 28:59:59</p>
<ol start="61">
<li><strong>函数 TO_DAYS</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：TO_DAYS (d timestamp)
</code></pre>
<p>功能：转换成公元 0 年 1 月 1 日的天数差。</p>
<p>d 是要转换的日期时间类型。或一个 YYYYMMDD YYMMDD YMMDD YYYMMDD 格式的整形 BIGINT。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">select to_days('2021-11-11');
</code></pre>
<p>查询结果为： 738470</p>
<ol start="62">
<li><strong>函数 DATE_ADD</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：DATE_ADD(d datetime, expr interval)
</code></pre>
<p>功能：返回一个日期或时间值加上一个时间间隔的时间值。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DATE_ADD('2020-07-12 12:20:30',INTERVAL '2 1 ' DAY TO SECOND);
</code></pre>
<p>查询结果为： 2020-07-14 13:20:30.000000</p>
<ol start="63">
<li><strong>函数 DATE_SUB</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：DATE_SUB(d datetime, expr interval)
</code></pre>
<p>功能：返回一个日期或时间值减去一个时间间隔的时间值。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DATE_SUB('2020-07-12 12:20:30',INTERVAL '2 1 ' DAY TO SECOND);
</code></pre>
<p>查询结果为： 2020-07-10 11:20:30.000000</p>
<ol start="64">
<li><strong>函数 SYS_EXTRACT_UTC</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：SYS_EXTRACT_UTC(d timestamp)
</code></pre>
<p>功能：提取 UTC 时区信息，将所给时区信息转换为 UTC 时区信息。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT SYS_EXTRACT_UTC('2000-03-28 11:30:00.00 -08:00') FROM DUAL;
</code></pre>
<p>查询结果为： 2000-03-28 19:30:00.000000</p>
<ol start="65">
<li><strong>函数 TO_DSINTERVAL</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：TO_DSINTERVAL(d timestamp)
</code></pre>
<p>功能：转换一个 timestamp 类型值到 INTERVAL DAY TO SECOND。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_DSINTERVAL('100 00:00:00') FROM DUAL;
</code></pre>
<p>查询结果为：INTERVAL '100 0:0:0.000000' DAY(9) TO SECOND(6)</p>
<ol start="66">
<li><strong>函数 TO_YMINTERVAL</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：TO_YMINTERVAL(d timestamp)
</code></pre>
<p>功能：转换一个 timestamp 类型值到 INTERVAL YEAR TO MONTH。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_YMINTERVAL('01-02') FROM DUAL;
</code></pre>
<p>查询结果为：INTERVAL '1-2' YEAR(9) TO MONTH</p>
<h2 id="8-4-空值判断函数" class="article-heading" style="position: relative;">8.4 空值判断函数<a class="article-anchor" href="#8.4 空值判断函数" aria-hidden="true"></a><div style="position: absolute; top: -100px;" id="8.4 空值判断函数"></div></h2>
<p>空值判断函数用于判断参数是否为 NULL，或根据参数返回 NULL。</p>
<p><strong>1．函数 COALESCE</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：COALESCE(n1,n2,…,nx)
</code></pre>
<p>功能：返回其参数中第一个非空的值，如果所有参数均为 NULL，则返回 NULL。如果参数为多媒体数据类型，如 TEXT 类型，则系统会将 
TEXT 类型先转换为 VARCHAR 类型或 VARBINARY 类型，转换的最大长度为 8188，超过部分将被截断。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT COALESCE(1,NULL);
</code></pre>
<p>查询结果为：1</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT COALESCE(NULL,TIME '12:00:00',TIME '11:00:00');
</code></pre>
<p>查询结果为：12:00:00</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT COALESCE(NULL,NULL,NULL,NULL);
</code></pre>
<p>查询结果：NULL</p>
<p><strong>2．函数 IFNULL</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：IFNULL(n1,n2)
</code></pre>
<p>功能：当表达式 n1 为非 NULL 时，返回 n1；若 n1 为 NULL，则返回表达式 n2 的值。若 n1 与 n2 为不同数据类型时，DM 会进行隐式数据类型转换，若数据类型转换出错，则会报错。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT IFNULL(1,3);
</code></pre>
<p>查询结果为：1</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT IFNULL(NULL,3);
</code></pre>
<p>查询结果为：3</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT IFNULL('',2);
</code></pre>
<p>查询结果： （空串）</p>
<p><strong>3．函数 ISNULL</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：ISNULL(n1,n2)
</code></pre>
<p>功能：当表达式 n1 为非空时，返回 n1；若 n1 为空，则返回表达式 n2 的值。n2 的数据类型应能转为 n1 的数据类型，否则会报错。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ISNULL(1,3);
</code></pre>
<p>查询结果为：1</p>
<p><strong>4．函数 NULLIF</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：NULLIF(n1,n2)
</code></pre>
<p>功能：如果 n1=n2，返回 NULL，否则返回 n1。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT NULLIF(1,2);
</code></pre>
<p>查询结果为：1</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT NULLIF(1,1);
</code></pre>
<p>查询结果为：NULL</p>
<p><strong>5．函数 NVL</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：NVL(n1,n2)
</code></pre>
<p>功能：返回第一个非空的值。若 n1 与 n2 为不同数据类型时，DM 会进行隐式数据类型转换，若数据类型转换出错，则会报错。</p>
<p>说明：</p>
<ol>
<li>当 n1 为确定性数据类型时，以 n1 为准；当 n1 的数据类型不确定时，以找到的第一个确定性数据类型为准；如果都为不确定数据类型时则定为 varchar 数据类型；</li>
<li>若参数一个为精确浮点数另一个为不精确浮点数，结果为不精确浮点数，可能导致数据精度丢失；</li>
<li>两个参数为不同数据类型时，结果为精度大的数据类型；</li>
<li>参数若为字符串类型，不论是 char 还是 varchar，结果类型均为 varchar，精度以大的为准；</li>
<li>参数类型都为时间日期类型时，结果类型为 n1 的类型；但若参数有 DATE 或 TIME 类型时，结果类型为 n1 和 n2 中精度较大的类型。</li>
</ol>
<p><strong>6．函数 NULL_EQU</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：NULL_EQU(n1,n2)
</code></pre>
<p>功能：返回两个类型相同的值的比较，当 n1=n2 或 n1、n2 两个值中出现 null 时，返回 1。类型可以是 
INT、BIT、BIGINT、FLOAT、DOUBLE、DEC、VARCHAR、DATE、TIME、TIME 
ZONE、DATETIME、DATETIME ZONE、INTERVAL 等。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">select null_equ(1,1);
</code></pre>
<p>查询结果为：1</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">select null_equ(1,3);
</code></pre>
<p>查询结果为：0</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">select null_equ(1,null);
</code></pre>
<p>查询结果为：1</p>
<h2 id="8-5-类型转换函数" class="article-heading" style="position: relative;">8.5 类型转换函数<a class="article-anchor" href="#8.5 类型转换函数" aria-hidden="true"></a><div style="position: absolute; top: -100px;" id="8.5 类型转换函数"></div></h2>
<p><strong>1．函数 CAST</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：CAST(value AS type)
</code></pre>
<p>功能：将参数 value 转换为 type 类型返回。类型之间转换的相容性如下表所示：表中，“允许”表示这种语法有效且不受限制，“－”表示语法无效，“受限”表示转换还受到具体参数值的影响。</p>
<p>数值类型为：精确数值类型和近似数值类型。</p>
<p>精确数值类型为：NUMERIC、DECIMAL、BYTE、INTEGER、SMALLINT。</p>
<p>近似数值类型为：FLOAT、REAL、DOUBLE PRECISION。</p>
<p>字符串为：变长字符串、固定字符串和 ROWID 类型。其中 ROWID 类型只能和字符串中的 VARCHAR（或 VARCHAR2）相互转换。</p>
<p>变长字符串为：VARCHAR、VARCHAR2。</p>
<p>固定字符串为：CHAR、CHARACTER。</p>
<p>ROWID 类型：ROWID。</p>
<p>字符串大对象为：CLOB、TEXT。</p>
<p>二进制为：BINARY、VARBINARY。</p>
<p>二进制大对象为：BLOB、IMAGE。</p>
<p>判断类型为：BIT、BOOLEAN。</p>
<p>日期为：DATE。时间为：TIME。时间戳为：TIMESTAMP。</p>
<p>时间时区为：TIME WITH TIME ZONE。</p>
<p>时间戳时区为：TIMESTAMP WITH TIME ZONE。</p>
<p>年月时间间隔为：INTERVAL YEAR TO MONTH、INTERVAL YEAR、INTERVAL MONTH。</p>
<p>日时时间间隔为：INTERVAL DAY、INTERVAL DAY TO HOUR、INTERVAL DAY TO 
MINUTE、INTERVAL DAY TO SECOND、INTERVAL HOUR、INTERVAL HOUR TO 
MINUTE、INTERVAL HOUR TO SECOND、INTERVAL MINUTE、INTERVAL MINUTE TO 
SECOND、INTERVAL SECOND。</p>
<center>表8.5.1 CAST类型转换相容矩阵</center>
<table>
 <colgroup><col>
 </colgroup><tbody><tr>
  <td>
      <b>Value</b></td>
  <td colspan="16"> <b>type数据类型</b></td>
 </tr>
 <tr>
  <td>数据类型</td>
  <td>数值类型</td>
  <td>字符串</td>
  <td>ROWID类型</td>
  <td>字符串大对象</td>
  <td>二进制</td>
  <td>二进制大对象</td>
  <td>判断类型</td>
  <td>日期</td>
  <td>时间</td>
  <td>时间戳</td>
  <td>时间时区</td>
  <td>时间戳时区</td>
  <td>年月时间间隔</td>
  <td>日时时间间隔</td>
 </tr>
 <tr>
  <td>数值类型</td>
  <td>受限</td>
  <td>受限</td>
  <td>－</td>
  <td>－</td>
  <td>允许</td>
  <td>－</td>
  <td>允许</td>
  <td>受限</td>
  <td>受限</td>
  <td>受限</td>
  <td>－</td>
  <td>－</td>
  <td>受限</td>
  <td>受限　</td>
 </tr>
 <tr>
  <td>字符串</td>
  <td>允许</td>
  <td>允许</td>
  <td>允许</td>
  <td>允许</td>
  <td>允许</td>
  <td>允许</td>
  <td>受限</td>
  <td>受限</td>
  <td>受限</td>
  <td>受限</td>
  <td>受限</td>
  <td>受限</td>
  <td>允许</td>
  <td>允许</td>
 </tr>
     
 <tr>
  <td>ROWID类型</td>
  <td>－</td>
       <td>允许</td>
  <td>允许</td>
  <td>－</td>
  <td>－</td>
  <td>－</td>
  <td>受限</td>
  <td>－</td>
  <td>－</td>
  <td>－</td>
  <td>－</td>
  <td>－</td>
  <td>－</td>
  <td>－</td>
 </tr>
 <tr>
  <td>字符串大对象</td>
  <td>－</td>
  <td>允许</td>
       <td>－</td>
  <td>－</td>
  <td>－</td>
  <td>允许</td>
  <td>－</td>
  <td>－</td>
  <td>－</td>
  <td>－</td>
  <td>－　</td>
  <td>－　</td>
  <td>－</td>
  <td>－　</td>
 </tr>
 <tr>
  <td>二进制</td>
  <td>允许</td>
  <td>允许</td>
  <td>－</td>
       <td>－</td>
  <td>允许</td>
  <td>允许</td>
  <td>受限</td>   
  <td>－</td>
  <td>－</td>
  <td>－</td>
  <td>－　</td>
  <td>－　</td>
  <td>－</td>
  <td>－　</td>
 </tr>
 <tr>
  <td>二进制大对象</td>
  <td>－</td>
  <td>－</td>
  <td>－</td>
       <td>－</td>
  <td>－</td>
  <td>允许</td>
     <td>受限</td>
  <td>－</td>
  <td>－</td>
  <td>－</td>
  <td>－　</td>
  <td>－　</td>
  <td>－</td>
  <td>－　</td>
 </tr>
<tr>
  <td>判断类型</td>
  <td>允许</td>
  <td>允许</td>
  <td>允许</td>
       <td>允许</td>
  <td>允许</td>
  <td>-</td>
     <td>允许</td>
  <td>允许</td>
  <td>允许</td>
  <td>允许</td>
  <td>－　</td>
  <td>－　</td>
  <td>受限</td>
  <td>受限</td>
 </tr>
 <tr>
  <td>日期</td>
  <td>－</td>
  <td>允许</td>
  <td>－</td>
  <td>－</td>
       <td>－</td>
  <td>－</td>
  <td>受限</td>   
  <td>允许</td>
  <td>－</td>
  <td>允许</td>
  <td>－　</td>
  <td>允许　</td>
  <td>－</td>
  <td>－　</td>
 </tr>
 <tr>
  <td>时间</td>
  <td>－</td>
  <td>允许</td>
  <td>－</td>
  <td>－</td>
       <td>－</td>
  <td>－</td>
  <td>受限</td>
  <td>－</td>
  <td>允许</td>
  <td>允许</td>
  <td>允许</td>
  <td>允许</td>
  <td>－</td>
  <td>－　</td>
 </tr>
 <tr>
  <td>时间戳</td>
  <td>－</td>
  <td>允许</td>
  <td>－</td>
       <td>－</td>
  <td>－</td>
  <td>－</td>
     <td>受限</td>
  <td>允许</td>
  <td>允许</td>
  <td>允许</td>
  <td>允许</td>
  <td>允许</td>
  <td>－</td>
  <td>－　</td>
 </tr>
 <tr>
  <td>时间时区</td>
  <td>－</td>
  <td>允许</td>
  <td>－</td>
       <td>－</td>
  <td>－</td>
  <td>－</td>
   <td>受限</td>
  <td>－</td>
  <td>允许</td>
  <td>允许</td>
  <td>允许</td>
  <td>－</td>
  <td>－</td>
  <td>－</td>
 </tr>
 <tr>
  <td>时间戳时区</td>
  <td>－</td>
  <td>允许</td>
  <td>－</td>
       <td>－</td>
  <td>－</td>
  <td>－</td>
   <td>受限</td>
  <td>允许</td>
  <td>允许</td>
  <td>允许</td>
  <td>－　</td>
  <td>允许　</td>
  <td>－</td>
  <td>－　</td>
 </tr>
 <tr>
  <td>年月时间间隔</td>
  <td>－</td>
  <td>允许</td>
  <td>－</td>
       <td>－</td>
  <td>－</td>
  <td>－　</td>
  <td>－　</td>
  <td>－　</td>
  <td>－　</td>
  <td>－　</td>
  <td>－　</td>
  <td>－　</td>
  <td>受限　</td>
  <td>－　</td>
 </tr>
 <tr>
  <td>日时时间间隔</td>
  <td>－　</td>
  <td>允许</td>
  <td>－　</td>
       <td>－</td>
  <td>－　</td>
  <td>－　</td>
  <td>－　</td>
  <td>－　</td>
     <td>－　</td>
  <td>－　</td>
  <td>－　</td>
  <td>－　</td>
  <td>－　</td>
  <td>受限　</td>
 </tr>
</tbody></table>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT CAST(100.5678 AS NUMERIC(10,2));
</code></pre>
<p>查询结果为：100.57</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT CAST(100.5678 AS VARCHAR(8));
</code></pre>
<p>查询结果为：100.5678</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT CAST('100.5678' AS INTEGER);
</code></pre>
<p>查询结果为：101</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT CAST(INTERVAL '01-01' YEAR TO MONTH AS char(50));
</code></pre>
<p>查询结果为：INTERVAL '1-1' YEAR(9) TO MONTH</p>
<p><strong>2．函数 CONVERT</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法1：CONVERT(type,value)
</code></pre>
<p>功能：用于当 INI 参数 ENABLE_CS_CVT=0 时，将参数 value 转换为 type 类型返回。其类型转换相容矩阵与函数 CAST()的相同。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT CONVERT(VARCHAR(8),100.5678);
</code></pre>
<p>查询结果为：100.5678</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT CONVERT(INTEGER, '100.5678');
</code></pre>
<p>查询结果为：101</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT CONVERT(CHAR(50),INTERVAL '100-5' YEAR(3) TO MONTH);
</code></pre>
<p>查询结果为：INTERVAL '100-5' YEAR(3) TO MONTH</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法2：CONVERT(char, dest_char_set [,source_char_set ] )
</code></pre>
<p>功能：用于当 INI 参数 ENABLE_CS_CVT=1 时，将字符串 char 
从原串编码格式（source_char_set）转换成目的编码格式（dest_char_set）。如果原串没指定，默认为数据库服务器编码格式。目
前只支持 ZHS16GBK、AL32UTF8、UTF8 和 ZHS32GB18030 四种编码格式。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">Select convert('席ϻ', 'UTF8', 'ZHS16GBK') from dual;
</code></pre>
<p>查询结果为：甯?</p>
<p><strong>3．函数 HEXTORAW</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：HEXTORAW (string)
</code></pre>
<p>功能：将由 string 表示的二进制字符串转换为一个 binary 数值类型。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT HEXTORAW ('abcdef');
</code></pre>
<p>查询结果为：0xABCDEF</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT HEXTORAW ('B4EFC3CECAFDBEDDBFE2D3D0CFDEB9ABCBBE');
</code></pre>
<p>查询结果为：0xB4EFC3CECAFDBEDDBFE2D3D0CFDEB9ABCBBE</p>
<p><strong>4．函数 RAWTOHEX</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：RAWTOHEX (binary)
</code></pre>
<p>功能：将 RAW 类数值 binary 转换为一个相应的十六进制表示的字符串。binary 中的每个字节都被转换为一个双字节的字符串。<br>
RAWTOHEX 和 HEXTORAW 是两个相反的函数。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT RAWTOHEX('达梦数据库有限公司');
</code></pre>
<p>查询结果为：B4EFC3CECAFDBEDDBFE2D3D0CFDEB9ABCBBE</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT RAWTOHEX('13');
</code></pre>
<p>查询结果为：3133</p>
<p><strong>5．函数 BINTOCHAR</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：BINTOCHAR (binary)
</code></pre>
<p>功能：将数值 binary 转换为字符串。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT BINTOCHAR ('0x61626364');
</code></pre>
<p>查询结果为：abcd</p>
<p><strong>6.函数 TO_BLOB</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：TO_BLOB (varbinary)
</code></pre>
<p>功能：将数值 varbinary 转换为 blob。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT TO_BLOB(utl_raw.cast_to_raw('abcd'));
</code></pre>
<p>查询结果为：0x61626364</p>
<p><strong>7.<strong><strong>函数</strong></strong>UNHEX</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：UNHEX(char1)
</code></pre>
<p>功能：将十六进制格式的字符串转化为原来的格式字符串。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT UNHEX('616263');
</code></pre>
<p>查询结果为：abc</p>
<p><strong>8.HEX</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：HEX(char1)
</code></pre>
<p>功能：将字符串转换为一个相应的十六进制表示的字符串。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT HEX('abc');
</code></pre>
<p>查询结果为：616263</p>
<h2 id="8-6-杂类函数" class="article-heading" style="position: relative;">8.6 杂类函数<a class="article-anchor" href="#8.6 杂类函数" aria-hidden="true"></a><div style="position: absolute; top: -100px;" id="8.6 杂类函数"></div></h2>
<ol>
<li><strong>函数 DECODE</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：DECODE(exp, search1, result1, … searchn, resultn[,default])
</code></pre>
<p>功能：查表译码，DECODE 函数将 exp 与 search1,search2, … searchn 相比较，如果等于 searchx，则返回 resultx，如果没有找到匹配项，则返回 default,如果未定义 default，返回 NULL。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DECODE(1, 1, 'A', 2, 'B');
</code></pre>
<p>查询结果为：'A'</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DECODE(3, 1, 'A', 2, 'B');
</code></pre>
<p>查询结果为：NULL</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DECODE(3, 1, 'A', 2, 'B', 'C');
</code></pre>
<p>查询结果为：'C'</p>
<ol start="2">
<li><strong>函数 ISDATE</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：ISDATE(exp)
</code></pre>
<p>功能：判断给定表达式是否为有效的日期，是返回 1，否则返回 0。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ISDATE('2012-10-9');
</code></pre>
<p>查询结果为：1</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ISDATE('2012-10-9 13:23:37');
</code></pre>
<p>查询结果为：1</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ISDATE(100);
</code></pre>
<p>查询结果为：0</p>
<ol start="3">
<li><strong>函数 ISNUMERIC</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：ISNUMERIC(exp)
</code></pre>
<p>功能：判断给定表达式是否为有效的数值，是返回 1，否则返回 0。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ISNUMERIC(1.323E+100);
</code></pre>
<p>查询结果为：1</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ISNUMERIC('2a');
</code></pre>
<p>查询结果为：0</p>
<p>4.<strong>函数 DM_HASH</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：DM_HASH (exp)
</code></pre>
<p>功能：根据给定表达式生成 HASH 值，返回结果为整型。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DM_HASH('DM HASH VALUE');
</code></pre>
<p>查询结果为：3086393668</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT DM_HASH(101);
</code></pre>
<p>查询结果为：1653893674</p>
<ol start="5">
<li><strong>函数 LNNVL</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：LNNVL(condition)
</code></pre>
<p>参数：condition 为布尔表达式。</p>
<p>功能：如果 condition 表达式计算结果值为 FALSE 或者 UNKNOWN 时，返回 TRUE，计算为 TRUE 时，则返回 FALSE。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT LNNVL(1=0) ;
</code></pre>
<p>查询结果为：1</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT T1.NAME, T2.NAME
FROM  PRODUCTION.PRODUCT_CATEGORY T1  RIGHT OUTER JOIN
PRODUCTION.PRODUCT_SUBCATEGORY T2
ON T1.PRODUCT_CATEGORYID = T2.PRODUCT_CATEGORYID WHERE LNNVL(T1.NAME&lt;&gt;'计算机');
</code></pre>
<p>查询结果如下：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">NAME   NAME
------ --------------
NULL   历史
计算机  计算机理论
计算机  计算机体系结构
计算机  操作系统
计算机  程序设计
计算机  数据库
计算机  软件工程
计算机  信息安全
计算机  多媒体
</code></pre>
<ol start="6">
<li><strong>函数 LENGTHB</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：LENGTHB(value)
</code></pre>
<p>参数：value 为 CHAR/VARCHAR/BINARY/VARBINARY/BLOB/CLOB 类型的值。</p>
<p>功能：返回 value 的字节数。当 value 为 NULL 时，返回 NULL。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT LENGTHB(0x1234567) "Length in bytes";
</code></pre>
<p>查询结果为：4</p>
<ol start="7">
<li><strong>函数 FIELD</strong></li>
</ol>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：函数FIELD(value, e1, e2, e3, e4...en)
</code></pre>
<p>功能：根据指定元素 value 在输入列表“e1、e2、e3、e4...en”中的位置返回相应的位置序号，不在输入列表时则返回 0。</p>
<p>FIELD()一般用在 ORDER BY 子句之后，将获取到的结果集按照输入列表的顺序进行排序。value 不在输入列表的结果，排在结果集的前面。</p>
<p>例</p>
<p>1）查询 50 在后面列表 10、50、100 中的位置序号。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT field(50,10,50,100);
</code></pre>
<p>查询结果为：2</p>
<p>2）按照列表中指定的顺序输出结果集。不符合条件的结果放在结果集前面。</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">select * from PERSON.ADDRESS order by field(city,'武汉市洪山区','武汉市汉阳区','武汉市武昌区','武汉市江汉区');
</code></pre>
<p>查询结果为：</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">ADDRESSID	ADDRESS1     ADDRESS2	 	    CITY		  POSTALCODE
3		   青山区青翠苑1号					 武汉市青山区	   430080
6		   洪山区保利花园50-1-304			  武汉市洪山区    430073
1		   洪山区369号金地太阳城56-1-202   	 武汉市洪山区	   430073
16		   洪山区光谷软件园C1_501			 武汉市洪山区	   430073
13		   洪山区关山春晓55-1-202			  武汉市洪山区	430073
15		   洪山区关山春晓11-1-202			  武汉市洪山区	430073
7		   洪山区保利花园51-1-702			  武汉市洪山区	430073
8		   洪山区关山春晓51-1-702			  武汉市洪山区	430073
2		   洪山区369号金地太阳城57-2-302	     武汉市洪山区	    430073
14		   洪山区关山春晓10-1-202			  武汉市洪山区	 430073
5		   汉阳大道熊家湾15号				 武汉市汉阳区		430050
11		   武昌区武船新村1号				 武汉市武昌区		430063
4		   武昌区武船新村115号				 武汉市武昌区		430063
12		   江汉区发展大道423号				 武汉市江汉区		430023
10		   江汉区发展大道555号				 武汉市江汉区		430023
9		   江汉区发展大道561号				 武汉市江汉区		430023	 
</code></pre>
<p><strong>8.</strong>  <strong>函数 ORA_HASH</strong></p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">语法：ORA_HASH(exp [,max_bucket [,seed_value]])
</code></pre>
<p>功能：为表达式 exp 生成 HASH 桶值。根据 exp 和随机数 seed_value 生成位于 0 到 max_bucket（包括 0 和 max_bucket）之间的 HASH 桶值，返回结果为整型。</p>
<p>参数：</p>
<p>exp：输入值。</p>
<p>max_bucket：返回的 HASH 桶值的最大值。取值范围为 0~4294967295，缺省为 4294967295。</p>
<p>seed_value：随机数。同一个 exp 搭配不同的 seed_value 会返回不同的结果（偶尔也会有巧合，得到相同值）。取值范围为 0~4294967295，缺省或 NULL 时为 0。</p>
<p>例</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ORA_HASH('ORA HASH VALUE');
</code></pre>
<p>查询结果为：1038192070</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ORA_HASH('ORA HASH VALUE',5);
</code></pre>
<p>查询结果为：4</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ORA_HASH('ORA HASH VALUE',5,100);
</code></pre>
<p>查询结果为：1</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ORA_HASH('ORA HASH VALUE',5,200);
</code></pre>
<p>查询结果为：2</p>
<pre><a class="btn-copy" data-clipboard-target="" style="text-align: center; float: right; margin-left: -64px; width: 64px; color: rgb(148, 163, 234); cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit; padding: 0px 0.3rem; position: relative; background: rgb(244, 244, 244); z-index: 9;"><span>Copy</span></a><code class="language-plaintext hljs" style="background: rgb(244, 244, 244);">SELECT ORA_HASH('ORA HASH VALUE',88,100);
</code></pre>
<p>查询结果为：14</p>

</div>

              </div>
              <footer class="article-footer">
                <time class="article-footer-updated" datetime="2023-03-18T08:29:25.617Z" itemprop="dateModified">上次更新：2023-03-18</time>
                <a href="https://eco.dameng.com/document/dm/zh-cn/pm/materialized-view.html" class="article-footer-prev" title="物化视图"><svg class="icon" style="font-size:16px" aria-hidden="true"><use xlink:href="#icon-arrow-left"></use></svg><span>上一篇</span></a><a href="https://eco.dameng.com/document/dm/zh-cn/pm/consistency-concurrency.html" class="article-footer-next" title="一致性和并发性"><span>下一篇</span><svg class="icon" style="font-size:16px" aria-hidden="true"><use xlink:href="#icon-arrow-right"></use></svg></a>
              </footer>
              
<section id="comments">
  <div id="disqus_thread"></div>
</section>
<script>
  var disqus_shortname = 'hexojs';
  var disqus_url = 'https://hexo.io/zh-cn/pm/function.html';
  var disqus_title = "函数";
  var disqus_config = function(){
    this.language = '';
  };
  //(function(){
  //  var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
  //  dsq.src = 'https://go.disqus.com/embed.js';
  //  (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
 // })();
</script>

            </div>
          </div>
          <aside id="article-toc" role="navigation">
            <div id="article-toc-inner" style="margin-top:1rem;">
              <ol class="article-toc-line">
                <li class="article-toc-start"></li>
                <li>
                  <a class="toc-link toc-level-1" href="#" id="">
                    <span class="toc-text">函数</span>
                  </a>
                </li>
                <li>
                  <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#8.1 数值函数"><span class="toc-text">8.1 数值函数</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#8.2 字符串函数"><span class="toc-text">8.2 字符串函数</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#8.3 日期时间函数"><span class="toc-text">8.3 日期时间函数</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#8.4 空值判断函数"><span class="toc-text">8.4 空值判断函数</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#8.5 类型转换函数"><span class="toc-text">8.5 类型转换函数</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#8.6 杂类函数"><span class="toc-text">8.6 杂类函数</span></a></li></ol>
                </li>
                <li class="article-toc-end"></li>
              </ol>
            </div>
          </aside>
        </div>
      </article>
    </div>
  </div>
</div>
<script>



 window.onload = function(){
  var toc_link_height = document.querySelector(".toc-link").offsetHeight
  var toc_text_height = document.querySelector(".toc").offsetHeight + toc_link_height + 184
  var toc_inner_height = document.getElementById("article-toc-inner").offsetHeight

  if(toc_text_height < toc_inner_height){
    document.getElementById("article-toc-top2").style.display = "inherit"
    document.getElementById("article-toc-top1").style.display = "none"
  }else{
    document.getElementById("article-toc-top2").style.display = "none"
    document.getElementById("article-toc-top1").style.display = "inherit"
  }
}

window.getTitle = () => {
  var router = document.querySelector(".main-nav-link.is-active").innerText;

  var third = document.querySelector(".left-sidebar-link.current") || null;

  if(!third){
    return ('文档-' + router + '-主页');
  }else{
    var second = third.parentElement.parentElement.children[0].childNodes[0];
    var first = second.parentElement.parentElement.parentElement.parentElement.children[0].childNodes[0];
    var current = document.querySelector(".left-sidebar-link.current").innerText;

    if(first !== second){
      if(first.parentElement.className == "inner"){
        return ('文档-' + router + '-' + second.textContent + '-' + current)
      }else{
        return ('文档-' + router + '-' + first.textContent + '-' + second.textContent + '-' + current)
      }
    }else{
        return ('文档-' + router + '-' + second.textContent + '-' + current);
    }
  }
}




var aTagArr = [].slice.apply(document.getElementsByTagName("a"));

aTagArr.forEach(function (e, i) {
  e.href.indexOf("_blank") > -1 ? e.target = "_blank" : null;
});
</script>
<script src="%E5%87%BD%E6%95%B0%20%E8%BE%BE%E6%A2%A6%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3_files/track.js" type="text/javascript"></script>
<script>
    // if(window.ecoTrack) window.ecoTrack.onload() 埋点
</script>

<script>

  function fix_toc(){
    console.log('top');
    ([1,2,3,4,5,6]).forEach(level=>{
      const h = Array.from(document.querySelectorAll('.article-content h'+level))
      const t = Array.from(document.querySelectorAll('.toc-item.toc-level-'+level+' >.toc-link>.toc-text'))

      const idmap = {}

      h.forEach(i_h=>{
        const text = i_h.innerText
        const i_t = t.find(v=>v.innerText === text)
        if(i_t && i_h && text){
          const id = idmap[text]? text+'_' + idmap[text]:text
          idmap[text] = idmap[text]?idmap[text]+1:1
          const arch = document.createElement('div')
          arch.style.position = 'absolute'
          arch.style.top = '-100px'
          arch.id = id
          i_h.appendChild(arch)
          i_h.style.position = 'relative'
          
          const link0 =  i_h.querySelector('.article-anchor')
          if(link0){
            link0.href = "#"+id
          }
          const link1 = i_t.parentElement
          if(link1){
            link1.href = "#"+id
          }
        }
      })
    })
  }

  
  fix_toc()
</script>

    <div>
    <div class="back-to-top">
        <div class="wechat-content">
          <div class="pop-img">
              <div id="qrcode" title="https://eco.dameng.com/document/dm/zh-cn/pm/function.html"><canvas style="display: none;" width="128" height="128"></canvas><img style="display: block;" src=""></div>
          </div>
          <div class="pop-span">
              <span>微信扫码<br>分享文档</span>
          </div>
        </div>
        <div class="wechat-share">
          <svg class="icon" aria-hidden="true">
            <use xlink:href="#icon-share-rig"></use>
          </svg>
        </div>

        <div class="pop-content">
            <img class="pop-img" src="%E5%87%BD%E6%95%B0%20%E8%BE%BE%E6%A2%A6%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3_files/kefu.png">
            <span class="pop-span">扫一扫<br>联系客服</span>
        </div>
        <div class="we-chat">
          <svg class="icon" aria-hidden="true">
            <use xlink:href="#icon-WeChat"></use>
          </svg>
        </div>
        <div class="backtop">
          <svg class="icon" aria-hidden="true">
            <use xlink:href="#icon-top-rig"></use>
          </svg>
        </div>
    </div>
</div>

<footer id="footer">
  <div class="eco-footer-container">
    <div class="footer-nav">
      <ul class="footer-nav-left">
        <li class="footer-item">
          <a>关于我们</a>
        </li>
        <li class="footer-item">
          <a>合作伙伴</a>
        </li>
        <li class="footer-item">
          <a>招纳贤士</a>
        </li>
        <li class="footer-item">
          <a>英文站</a>
        </li>
        <li class="footer-item">
          <a href="https://www.dameng.com/" rel="external nofollow noreferrer" target="_blank">达梦官网</a>
        </li>
        <li class="footer-item">
          <a href="https://www.dmdatatech.com/" rel="external nofollow noreferrer" target="_blank">达梦技术</a>
        </li>
        <li class="footer-item">
          <a href="http://www.gdmbase.com/" rel="external nofollow noreferrer" target="_blank">蜀天梦图</a>
        </li>
      </ul>
      <ul class="footer-nav-right">
        <li class="footer-item wechat">
          <div class="popover-wechat" style="display: none">
            <img src="%E5%87%BD%E6%95%B0%20%E8%BE%BE%E6%A2%A6%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3_files/qrcode-new.jpg" alt="" style="display: block; height: 145px; width: 145px;">
            <div class="text"> 微信公众号 </div>
            <div class="popover-arrow"></div>
          </div>
          <img class="icon wechat" src="%E5%87%BD%E6%95%B0%20%E8%BE%BE%E6%A2%A6%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3_files/weichat.png" alt="logo">
        </li>
        <li class="footer-item phone">
          <div class="popover-phone" style="display: none;">
            <div class="text-item-1"> 24小时热线 </div>
            <div class="text-item-2"> 400 991 6599 </div>
            <div class="text-item-3"> 商务咨询转 1 号线 </div>
            <div class="text-item-4"> 技术咨询转 2 号线 </div>
            <div class="popover-arrow"></div>
          </div>
          <img class="icon phone" src="%E5%87%BD%E6%95%B0%20%E8%BE%BE%E6%A2%A6%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3_files/phone.png" alt="logo">
        </li>
        <li class="footer-item email">
          <div class="popover-email" style="display: none;">
            <div class="text-item-1">技术支持</div>
            <div class="text-item-2">dmtech@dameng.com</div>
            <div class="popover-arrow"></div>
          </div>
          <img class="icon email" src="%E5%87%BD%E6%95%B0%20%E8%BE%BE%E6%A2%A6%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3_files/mail.png" alt="logo">
        </li>
      </ul>
    </div>
    <div class="footer-copyright">
      <span style="display:block;line-height: 26px;">鄂Copyright © <time>2023</time> 达梦国产化应用创新实验室 鄂ICP备18017926号-1</span>
    </div>
    <div class="mobile-footer-copyright">
      <p class="item1">鄂Copyright © <time>2023 <span>达梦国产化应用创新实验室</span></time></p>
      <span class="item2">鄂ICP备18017926号-1</span>
    </div>
  </div>
</footer>
  </div>
  <div id="mobile-nav-dimmer"></div>
  <nav id="mobile-nav">
  <div id="mobile-nav-inner">
    <ul id="mobile-nav-list" style="margin-bottom:20px;">
      <a href="https://eco.dameng.com/document/dm/zh-cn/start/" class="mobile-nav-link">快速上手</a><a href="https://eco.dameng.com/document/dm/zh-cn/ops/" class="mobile-nav-link">运维指南</a><a href="https://eco.dameng.com/document/dm/zh-cn/app-dev/" class="mobile-nav-link">应用开发指南</a><a href="https://eco.dameng.com/document/dm/zh-cn/sql-dev/" class="mobile-nav-link">SQL 开发指南</a><a href="https://eco.dameng.com/document/dm/zh-cn/faq/" class="mobile-nav-link">常见问题</a><a href="https://eco.dameng.com/document/dm/zh-cn/pm/" class="mobile-nav-link is-active">产品手册</a>      
    </ul>
    
      
          <div class="side-mobile-nav-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 28px;">
            <a class="side-mobile-nav-link" onclick="toggel(this)" style="font-weight:800;">DM8 安装手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/installation-introduction.html" class="side-mobile-nav-link ">安装简介</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/install-uninstall.html" class="side-mobile-nav-link ">安装及卸载</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/license.html" class="side-mobile-nav-link ">许可证 (License) 的安装</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8-tools.html" class="side-mobile-nav-link ">数据库配置工具使用说明</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8-appendix.html" class="side-mobile-nav-link ">附录</a></div>
          </div>
          <div class="bar-border" style="display: inherit; border-bottom: 1px solid rgb(51, 51, 51);"></div>
        

          <div class="side-mobile-nav-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 28px;">
            <a class="side-mobile-nav-link" onclick="toggel(this)" style="font-weight:800;">DM8 系统管理员手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/logical-structure.html" class="side-mobile-nav-link ">DM 逻辑结构概述</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/physical-storage.html" class="side-mobile-nav-link ">DM 物理存储结构</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/memory-structure.html" class="side-mobile-nav-link ">DM 内存结构</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/manage-threads.html" class="side-mobile-nav-link ">管理 DM 线程</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/system-administrator.html" class="side-mobile-nav-link ">DM 系统管理员</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/create-configure.html" class="side-mobile-nav-link ">创建和配置 DM 数据库</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/start-shut-down.html" class="side-mobile-nav-link ">启动和关闭数据库</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/manage-objects.html" class="side-mobile-nav-link ">管理模式对象的空间</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/management-table.html" class="side-mobile-nav-link ">管理表</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/manage-index.html" class="side-mobile-nav-link ">管理索引</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/manage-triggers.html" class="side-mobile-nav-link ">管理触发器</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/manage-views.html" class="side-mobile-nav-link ">管理视图、序列和同义词</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/management-pattern.html" class="side-mobile-nav-link ">模式对象的常规管理</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/database-management.html" class="side-mobile-nav-link ">数据库布局和存储管理</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/manage-partition.html" class="side-mobile-nav-link ">管理分区表和分区索引</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/manage-column-tables.html" class="side-mobile-nav-link ">管理列存储表</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/manage-table.html" class="side-mobile-nav-link ">管理堆表</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/full-text-search.html" class="side-mobile-nav-link ">全文检索</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/management-affairs.html" class="side-mobile-nav-link ">管理事务</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/tracking-resolution.html" class="side-mobile-nav-link ">问题跟踪和解决</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dynamic-management.html" class="side-mobile-nav-link ">动态管理和性能视图</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/query-optimization.html" class="side-mobile-nav-link ">查询优化</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/sql-tuning.html" class="side-mobile-nav-link ">SQL 调优</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/recovery.html" class="side-mobile-nav-link ">故障恢复</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/data-replication.html" class="side-mobile-nav-link ">数据复制</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/version-upgrade.html" class="side-mobile-nav-link ">版本升级</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8-admin-manual-appendix.html" class="side-mobile-nav-link ">附录</a></div>
          </div>
          <div class="bar-border" style="display: inherit; border-bottom: 1px solid rgb(51, 51, 51);"></div>
        

          <div class="side-mobile-nav-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 28px;">
            <a class="side-mobile-nav-link" onclick="toggel(this)" style="font-weight:800;">DM8 程序员手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/programmer-overview.html" class="side-mobile-nav-link ">概述</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dpi-rogramming-guide.html" class="side-mobile-nav-link ">DPI 编程指南</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/odbc-rogramming-guide.html" class="side-mobile-nav-link ">DM ODBC 编程指南</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/jdbc-rogramming-guide.html" class="side-mobile-nav-link ">DM JDBC 编程指南</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/net-rogramming-guide.html" class="side-mobile-nav-link ">.NET Data Provider 编程指南</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/php-rogramming-guide.html" class="side-mobile-nav-link ">DM PHP 编程指南</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/fldr-rogramming-guide.html" class="side-mobile-nav-link ">DM FLDR 编程指南</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dexp-dimp-jni-rogramming-guide.html" class="side-mobile-nav-link ">DM DEXP/DIMP JNI编程指南</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/logmnr-interface-instructions.html" class="side-mobile-nav-link ">接口使用说明</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/nodejs-rogramming-guide.html" class="side-mobile-nav-link ">DM Node.js 编程指南</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/go-rogramming-guide.html" class="side-mobile-nav-link ">DM Go 编程指南</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/xa-rogramming-guide.html" class="side-mobile-nav-link ">DM XA 编程指南</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/msgpars-rogramming-guide.html" class="side-mobile-nav-link ">msgparse接口使用说明</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/r2dbc-rogramming-guide.html" class="side-mobile-nav-link ">DM R2DBC编程指南</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/programmer-appendix.html" class="side-mobile-nav-link ">附录</a></div>
          </div>
          <div class="bar-border" style="display: inherit; border-bottom: 1px solid rgb(51, 51, 51);"></div>
        

          <div class="side-mobile-nav-link-group top open" style="display: block; transition: all 0.3s ease-out 0s; height: 568px;">
            <a class="side-mobile-nav-link" onclick="toggel(this)" style="font-weight:800;">DM8 SQL 语言使用手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm_sql-introduction.html" class="side-mobile-nav-link ">结构化查询语言 DM_SQL 简介</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/example-description.html" class="side-mobile-nav-link ">手册中的示例说明</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/definition-statement.html" class="side-mobile-nav-link ">数据定义语句</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/check-phrases.html" class="side-mobile-nav-link ">数据查询语句</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/insertion-deletion-modification.html" class="side-mobile-nav-link ">数据的插入、删除和修改</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/view.html" class="side-mobile-nav-link ">视图</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/materialized-view.html" class="side-mobile-nav-link ">物化视图</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/function.html" class="side-mobile-nav-link current">函数</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/consistency-concurrency.html" class="side-mobile-nav-link ">一致性和并发性</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/external-function.html" class="side-mobile-nav-link ">外部函数</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/package.html" class="side-mobile-nav-link ">包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/class-type.html" class="side-mobile-nav-link ">类类型</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/custom-type.html" class="side-mobile-nav-link ">自定义类型</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/trigger.html" class="side-mobile-nav-link ">触发器</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/synonym.html" class="side-mobile-nav-link ">同义词</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/external-link.html" class="side-mobile-nav-link ">外部链接</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/flashback-query.html" class="side-mobile-nav-link ">闪回查询</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/json.html" class="side-mobile-nav-link ">JSON</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/advanced-log.html" class="side-mobile-nav-link ">高级日志</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/sql-appendix.html" class="side-mobile-nav-link ">附录</a></div>
          </div>
          <div class="bar-border" style="display: inherit; border-bottom: 1px solid rgb(51, 51, 51);"></div>
        

          <div class="side-mobile-nav-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 28px;">
            <a class="side-mobile-nav-link" onclick="toggel(this)" style="font-weight:800;">DM8 DIsql 使用手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/function-introduction.html" class="side-mobile-nav-link ">功能简介</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/getting-started-disql.html" class="side-mobile-nav-link ">DIsql 入门</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/environment-variable-settings.html" class="side-mobile-nav-link ">DIsql 环境变量设置</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/common-commands.html" class="side-mobile-nav-link ">DIsql 常用命令</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/disql-script.html" class="side-mobile-nav-link ">如何在 DIsql 中使用脚本</a></div>
          </div>
          <div class="bar-border" style="display: inherit; border-bottom: 1px solid rgb(51, 51, 51);"></div>
        

          <div class="side-mobile-nav-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 28px;">
            <a class="side-mobile-nav-link" onclick="toggel(this)" style="font-weight:800;">DM8 dexp 和 dimp 手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dexp-dimp-function-introduction.html" class="side-mobile-nav-link ">功能简介</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dexp-logical-export.html" class="side-mobile-nav-link ">dexp 逻辑导出</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dimp-logical%20import.html" class="side-mobile-nav-link ">dimp 逻辑导入</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dexp-dimp-applications.html" class="side-mobile-nav-link ">dexp 和 dimp 应用实例</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/Promotion-demotion.html" class="side-mobile-nav-link ">升级和降级</a></div>
          </div>
          <div class="bar-border" style="display: inherit; border-bottom: 1px solid rgb(51, 51, 51);"></div>
        

          <div class="side-mobile-nav-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 28px;">
            <a class="side-mobile-nav-link" onclick="toggel(this)" style="font-weight:800;">DM8 快速装载工具使用手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dmfldr-overview.html" class="side-mobile-nav-link ">概述</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/getting-started-dmfldr.html" class="side-mobile-nav-link ">dmfldr 入门</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/actual-combat-dmfldr.html" class="side-mobile-nav-link ">dmfldr 实战</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dmldrp-dmldrc-introduction.html" class="side-mobile-nav-link ">dmldrp和dmldrc入门</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dmldrp-dmldrc-draft.html" class="side-mobile-nav-link ">dmldrp和dmldrc实战</a></div>
          </div>
          <div class="bar-border" style="display: inherit; border-bottom: 1px solid rgb(51, 51, 51);"></div>
        

          <div class="side-mobile-nav-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 28px;">
            <a class="side-mobile-nav-link" onclick="toggel(this)" style="font-weight:800;">DM8 dminit 使用手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dminit-function-introduction.html" class="side-mobile-nav-link ">功能简介</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/use-dminit.html" class="side-mobile-nav-link ">使用 dminit</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/view-dminit-parameters.html" class="side-mobile-nav-link ">查看 dminit 参数</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dminit-parameters.html" class="side-mobile-nav-link ">dminit 参数详解</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dminit-advanced-topics.html" class="side-mobile-nav-link ">dminit 高级主题</a></div>
          </div>
          <div class="bar-border" style="display: inherit; border-bottom: 1px solid rgb(51, 51, 51);"></div>
        

          <div class="side-mobile-nav-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 28px;">
            <a class="side-mobile-nav-link" onclick="toggel(this)" style="font-weight:800;">DM8 Python 使用手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dmpython-introduction.html" class="side-mobile-nav-link ">dmPython 简介</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dmpython-installation.html" class="side-mobile-nav-link ">dmPython 安装</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dmpython-interface.html" class="side-mobile-nav-link ">dmPython 接口详解</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dmpython-drive.html" class="side-mobile-nav-link ">django_dmPython 驱动</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dmpython-dialect-package.html" class="side-mobile-nav-link ">sqlalchemy_dm 方言包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbutils-package.html" class="side-mobile-nav-link ">DBUtils 包</a></div>
          </div>
          <div class="bar-border" style="display: inherit; border-bottom: 1px solid rgb(51, 51, 51);"></div>
        

          <div class="side-mobile-nav-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 28px;">
            <a class="side-mobile-nav-link" onclick="toggel(this)" style="font-weight:800;">DM8 Linux 脚本使用手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8_linux-script-manual.html" class="side-mobile-nav-link ">DM8 Linux 脚本使用手册</a></div>
          </div>
          <div class="bar-border" style="display: inherit; border-bottom: 1px solid rgb(51, 51, 51);"></div>
        

          <div class="side-mobile-nav-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 28px;">
            <a class="side-mobile-nav-link" onclick="toggel(this)" style="font-weight:800;">DM8 PROC 使用手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/proc-overview.html" class="side-mobile-nav-link ">概述</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/precompiled-concept.html" class="side-mobile-nav-link ">预编译概念</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/embedded-program.html" class="side-mobile-nav-link ">嵌入式程序的组成</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/oracle-compatible.html" class="side-mobile-nav-link ">Oracle 兼容</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/db2-compatible.html" class="side-mobile-nav-link ">DB2 兼容</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/embedded-sql.html" class="side-mobile-nav-link ">DM 嵌入式 SQL 高级功能</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/proc-program-example.html" class="side-mobile-nav-link ">PRO*C 程序实例</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/proc-appendix.html" class="side-mobile-nav-link ">附录</a></div>
          </div>
          <div class="bar-border" style="display: inherit; border-bottom: 1px solid rgb(51, 51, 51);"></div>
        

          <div class="side-mobile-nav-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 28px;">
            <a class="side-mobile-nav-link" onclick="toggel(this)" style="font-weight:800;">DM8 SQL 程序设计<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8_sql-overview.html" class="side-mobile-nav-link ">概述</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8_sql-data-types-operators.html" class="side-mobile-nav-link ">DMSQL 程序数据类型与操作符</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8_sql-definition-deletion.html" class="side-mobile-nav-link ">DMSQL 程序的定义、调用与删除</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8_sql-various-control.html" class="side-mobile-nav-link ">DMSQL 程序中的各种控制结构</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8_sql-sql-statement.html" class="side-mobile-nav-link ">DMSQL 程序中的 SQL 语句</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8_sql-exception-handling.html" class="side-mobile-nav-link ">DMSQL 程序异常处理</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8_sql-c-java.html" class="side-mobile-nav-link ">基于 C、JAVA 语法的 DMSQL 程序</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8_sql-debug.html" class="side-mobile-nav-link ">DMSQL 程序调试</a></div>
          </div>
          <div class="bar-border" style="display: inherit; border-bottom: 1px solid rgb(51, 51, 51);"></div>
        

          <div class="side-mobile-nav-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 28px;">
            <a class="side-mobile-nav-link" onclick="toggel(this)" style="font-weight:800;">DM8 dmdbchk 使用手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8-dmdbchk-manual.html" class="side-mobile-nav-link ">DM8 dmdbchk 使用手册</a></div>
          </div>
          <div class="bar-border" style="display: inherit; border-bottom: 1px solid rgb(51, 51, 51);"></div>
        

          <div class="side-mobile-nav-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 28px;">
            <a class="side-mobile-nav-link" onclick="toggel(this)" style="font-weight:800;">DM8 安全管理<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8-safety-overview.html" class="side-mobile-nav-link ">概述</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/identification-authentication.html" class="side-mobile-nav-link ">用户标识与鉴别</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/discretionary-access-control.html" class="side-mobile-nav-link ">自主访问控制</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/mandatory-access-control.html" class="side-mobile-nav-link ">强制访问控制</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/audit.html" class="side-mobile-nav-link ">审计</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/communication-encryption.html" class="side-mobile-nav-link ">通信加密</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/storage-encryption.html" class="side-mobile-nav-link ">存储加密</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/encryption-engine.html" class="side-mobile-nav-link ">加密引擎</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/resource-limit.html" class="side-mobile-nav-link ">资源限制</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/guest-weight.html" class="side-mobile-nav-link ">客体重用</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/user-name-password.html" class="side-mobile-nav-link ">登录用户名密码增强加密</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/username-password-external-storage.html" class="side-mobile-nav-link ">登录用户名密码外部存储</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8-safety-appendix.html" class="side-mobile-nav-link ">附录</a></div>
          </div>
          <div class="bar-border" style="display: inherit; border-bottom: 1px solid rgb(51, 51, 51);"></div>
        

          <div class="side-mobile-nav-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 28px;">
            <a class="side-mobile-nav-link" onclick="toggel(this)" style="font-weight:800;">DM8 备份与还原<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/backup-restore-introduction.html" class="side-mobile-nav-link ">备份还原简介</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/backup-restore-principle.html" class="side-mobile-nav-link ">备份还原原理</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/backup-restore-combat.html" class="side-mobile-nav-link ">备份还原实战</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/database-restore.html" class="side-mobile-nav-link ">联机拷贝数据库还原恢复</a></div>
          </div>
          <div class="bar-border" style="display: inherit; border-bottom: 1px solid rgb(51, 51, 51);"></div>
        

          <div class="side-mobile-nav-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 28px;">
            <a class="side-mobile-nav-link" onclick="toggel(this)" style="font-weight:800;">DM8 大规模并行处理MPP<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8-mpp-foreword.html" class="side-mobile-nav-link ">引言</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8-mpp-overview.html" class="side-mobile-nav-link ">概述</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/basic-concepts-principles.html" class="side-mobile-nav-link ">基本概念与原理</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/environment-construction.html" class="side-mobile-nav-link ">DM MPP 环境搭建与使用</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8-mpp-active-standby.html" class="side-mobile-nav-link ">DM MPP 主备系统</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dm8-mpp-system.html" class="side-mobile-nav-link ">DM MPP 系统管理</a></div>
          </div>
          <div class="bar-border" style="display: inherit; border-bottom: 1px solid rgb(51, 51, 51);"></div>
        

          <div class="side-mobile-nav-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 28px;">
            <a class="side-mobile-nav-link" onclick="toggel(this)" style="font-weight:800;">DM8 共享存储集群<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-overview.html" class="side-mobile-nav-link ">DMDSC 概述</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-surroundings.html" class="side-mobile-nav-link ">DMDSC 使用的环境</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-technology.html" class="side-mobile-nav-link ">DMDSC 关键技术</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/css-introduction.html" class="side-mobile-nav-link ">DMCSS 介绍</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-startup-shutdown.html" class="side-mobile-nav-link ">DMDSC 启动、关闭流程</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-fault-handling.html" class="side-mobile-nav-link ">DMDSC 故障处理</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-node.html" class="side-mobile-nav-link ">DMDSC 节点重加入</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-configuration-instructions.html" class="side-mobile-nav-link ">DMDSC 配置文件</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dmasm-introduce.html" class="side-mobile-nav-link ">DMASM 介绍</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dmasm-image-introduction.html" class="side-mobile-nav-link ">DMASM 镜像介绍</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-build.html" class="side-mobile-nav-link ">DMDSC 搭建</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/skill-servicename.html" class="side-mobile-nav-link ">巧用服务名</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dynamically-expand-nodes.html" class="side-mobile-nav-link ">动态扩展节点</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-monitor.html" class="side-mobile-nav-link ">监控 DMDSC</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-backup-restore.html" class="side-mobile-nav-link ">备份还原</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-instructions-use.html" class="side-mobile-nav-link ">DMDSC 注意事项</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-version-upgrade.html" class="side-mobile-nav-link ">版本升级</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dsc-appendix.html" class="side-mobile-nav-link ">附录</a></div>
          </div>
          <div class="bar-border" style="display: inherit; border-bottom: 1px solid rgb(51, 51, 51);"></div>
        

          <div class="side-mobile-nav-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 28px;">
            <a class="side-mobile-nav-link" onclick="toggel(this)" style="font-weight:800;">DM8 数据守护与读写分离集群<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/data-watch-overview.html" class="side-mobile-nav-link ">概述</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/data-watch-daemon.html" class="side-mobile-nav-link ">守护进程</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/data-watch-monitor.html" class="side-mobile-nav-link ">监视器</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/configuration-description.html" class="side-mobile-nav-link ">配置文件说明</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/data-guard.html" class="side-mobile-nav-link ">数据守护使用说明</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/data-guard-construction.html" class="side-mobile-nav-link ">数据守护搭建</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dem-tools.html" class="side-mobile-nav-link ">利用 DEM 工具搭建数据守护</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/data-watch-version-upgrade.html" class="side-mobile-nav-link ">版本升级</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/data-watch-appendix.html" class="side-mobile-nav-link ">附录</a></div>
          </div>
          <div class="bar-border" style="display: inherit; border-bottom: 1px solid rgb(51, 51, 51);"></div>
        

          <div class="side-mobile-nav-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 28px;">
            <a class="side-mobile-nav-link" onclick="toggel(this)" style="font-weight:800;">DM8 系统包使用手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/package-overview.html" class="side-mobile-nav-link ">概述</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dmgeo-package.html" class="side-mobile-nav-link ">DMGEO 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_advanced_rewrite-package.html" class="side-mobile-nav-link ">DBMS_ADVANCED_REWRITE 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_alert-package.html" class="side-mobile-nav-link ">DBMS_ALERT 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_binary-package.html" class="side-mobile-nav-link ">DBMS_BINARY 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_job-package.html" class="side-mobile-nav-link ">DBMS_JOB 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_lob-package.html" class="side-mobile-nav-link ">DBMS_LOB 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_lock-package.html" class="side-mobile-nav-link ">DBMS_LOCK 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_logmnr-package.html" class="side-mobile-nav-link ">DBMS_LOGMNR 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_metadata-package.html" class="side-mobile-nav-link ">DBMS_METADATA 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_obfuscation_toolkit-package.html" class="side-mobile-nav-link ">DBMS_OBFUSCATION_TOOLKIT 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_output-package.html" class="side-mobile-nav-link ">DBMS_OUTPUT 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_page-package.html" class="side-mobile-nav-link ">DBMS_PAGE 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_pipe-package.html" class="side-mobile-nav-link ">DBMS_PIPE 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_random-package.html" class="side-mobile-nav-link ">DBMS_RANDOM 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_rls-package.html" class="side-mobile-nav-link ">DBMS_RLS 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_session-package.html" class="side-mobile-nav-link ">DBMS_SESSION 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_space-package.html" class="side-mobile-nav-link ">DBMS_SPACE 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_sql-package.html" class="side-mobile-nav-link ">DBMS_SQL 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_transaction-package.html" class="side-mobile-nav-link ">DBMS_TRANSACTION 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_stats-package.html" class="side-mobile-nav-link ">DBMS_STATS 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_utility-package.html" class="side-mobile-nav-link ">DBMS_UTILITY 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_workload-package.html" class="side-mobile-nav-link ">DBMS_WORKLOAD_REPOSITORY 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_xmlgen-package.html" class="side-mobile-nav-link ">DBMS_XMLGEN 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/utl_encode-package.html" class="side-mobile-nav-link ">UTL_ENCODE 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/utl_file-package.html" class="side-mobile-nav-link ">UTL_FILE 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/utl_inaddr-package.html" class="side-mobile-nav-link ">UTL_INADDR 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/utl_mail-package.html" class="side-mobile-nav-link ">UTL_MAIL 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/utl_match-package.html" class="side-mobile-nav-link ">UTL_MATCH 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/utl_raw-package.html" class="side-mobile-nav-link ">UTL_RAW 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/utl_tcp-package.html" class="side-mobile-nav-link ">UTL_TCP 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/utl_url-package.html" class="side-mobile-nav-link ">UTL_URL 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_scheduler-package.html" class="side-mobile-nav-link ">DBMS_SCHEDULER 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_mview-package.html" class="side-mobile-nav-link ">DBMS_MVIEW 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/utl_smtp-package.html" class="side-mobile-nav-link ">UTL_SMTP 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/utl_http-package.html" class="side-mobile-nav-link ">UTL_HTTP 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/utl_t18n-package.html" class="side-mobile-nav-link ">UTL_I18N 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_aqadm-package.html" class="side-mobile-nav-link ">DBMS_AQADM 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_aq-package.html" class="side-mobile-nav-link ">DBMS_AQ 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_sqltume-package.html" class="side-mobile-nav-link ">DBMS_SQLTUNE 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_crypto-package.html" class="side-mobile-nav-link ">DBMS_CRYPTO 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_errlog-package.html" class="side-mobile-nav-link ">DBMS_ERRLOG 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/utl_compress-package.html" class="side-mobile-nav-link ">UTL_COMPRESS 包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_application_info-package.html" class="side-mobile-nav-link ">DBMS_APPLICATION_INFO包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_redefinition-package.html" class="side-mobile-nav-link ">DBMS_REDEFINITION包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_xa-package.html" class="side-mobile-nav-link ">DBMS_XA包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_xmldom-package.html" class="side-mobile-nav-link ">DBMS_XMLDOM包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dbms_debug-package.html" class="side-mobile-nav-link ">DBMS_DEBUG包</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/odciconst-package.html" class="side-mobile-nav-link ">ODCICONST 包</a></div>
          </div>
          <div class="bar-border" style="display: inherit; border-bottom: 1px solid rgb(51, 51, 51);"></div>
        

          <div class="side-mobile-nav-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 28px;">
            <a class="side-mobile-nav-link" onclick="toggel(this)" style="font-weight:800;">DM8 作业系统使用手册<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/operation-function-introduction.html" class="side-mobile-nav-link ">功能简介</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/create-job-environment.html" class="side-mobile-nav-link ">创建作业环境</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/operator.html" class="side-mobile-nav-link ">操作员</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/job.html" class="side-mobile-nav-link ">作业</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/alarm.html" class="side-mobile-nav-link ">警报</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/monitoring-job.html" class="side-mobile-nav-link ">监控作业</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/typical-example.html" class="side-mobile-nav-link ">一个典型示例</a></div>
          </div>
          <div class="bar-border" style="display: inherit; border-bottom: 1px solid rgb(51, 51, 51);"></div>
        

          <div class="side-mobile-nav-link-group top " style="display: block; transition: all 0.3s ease-out 0s; height: 28px;">
            <a class="side-mobile-nav-link" onclick="toggel(this)" style="font-weight:800;">DM8 分布计算集群<i class="iconfont top-icon"></i></a>
            <div style="padding-left:8px"><a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dmdpc-introduction.html" class="side-mobile-nav-link ">DMDPC 概述</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dpc-basic-technical-concepts.html" class="side-mobile-nav-link ">基本概念和技术指标</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dpc-terms-use.html" class="side-mobile-nav-link ">DMDPC使用须知</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dpc-key-technology.html" class="side-mobile-nav-link ">DMDPC的关键技术</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dpc-dispose.html" class="side-mobile-nav-link ">DMDPC配置</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dpc-cluster-deploy.html" class="side-mobile-nav-link ">DMDPC 集群部署</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dpc-cluster-management-use.html" class="side-mobile-nav-link ">DMDPC 集群的管理与使用</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dpc-quick-loading-tool.html" class="side-mobile-nav-link ">快速装载工具</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dpc-query-analysis.html" class="side-mobile-nav-link ">查询分析</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dpc-sql-tuning.html" class="side-mobile-nav-link ">SQL调优</a>
<a style="display:block;padding-left:8px" href="https://eco.dameng.com/document/dm/zh-cn/pm/dpc-system_table-dynamic_view.html" class="side-mobile-nav-link ">相关系统表和动态视图</a></div>
          </div>
          <div class="bar-border" style="display: inherit; border-bottom: 1px solid rgb(51, 51, 51);"></div>
        <script>

  function isOpenWeb(group) {
    const children = Array.from(group.children[1].children)
    const isOpenStatus = children.map(function (element) {
      if (element.className.indexOf('left-sidebar-link-group') >= 0) {
        return isOpenWeb(element)
      } else {
        if (element.className.indexOf('current') >= 0) {
          return true
        } else {
          return false
        }
      }
    }).reduce((a, b) => a || b, false)


    if (isOpenStatus) {
      if (group.className.indexOf('top') >= 0)
        group.className = 'left-sidebar-link-group top open'
      else
        group.className = 'left-sidebar-link-group open'
    }else{
      if (group.className.indexOf('top') >= 0)
        group.className = 'left-sidebar-link-group top '
      else
        group.className = 'left-sidebar-link-group'
    }

    return isOpenStatus
  }

  function calcuHeightWeb(group){
    const link = group.children[0]
    const div = group.children[1]
    let  h = link.offsetHeight

    if(group.className.indexOf('open')<0){

    }else{
      const cheight =  Array.from(div.children).map(element=>{
        if (element.className.indexOf('left-sidebar-link-group') >= 0) {
          return calcuHeightWeb(element)
        } else {
          return (element.offsetHeight)
        }
      }).reduce((a,b)=>a+b,0)

      h = h + cheight
    }

    group.style.height = h + 'px'

    return h
  }

  window.onload=function(){
    // left sider display block

    Array.from(document.querySelectorAll('.left-sidebar-link-group.top')).forEach(v=>{
      v.style.display = "block";
      v.nextElementSibling.style.display = "inherit"
    })

    Array.from(document.querySelectorAll('.left-sidebar-link-group.top')).forEach(v=>{
      isOpenWeb(v)})

    Array.from(document.querySelectorAll('.left-sidebar-link-group.top')).forEach(v=>{
      calcuHeightWeb(v)})

    Array.from(document.querySelectorAll('.left-sidebar-link')).forEach(v=>{
      if(v.parentElement.className.indexOf('side-mobile-nav-link-group')>=0){
        v.parentElement.classList.replace('side-mobile-nav-link-group','left-sidebar-link-group')
      }
    })

  }

  </script>
    
  <script>
  document.querySelectorAll('.sidebar-title.left-siderbar').forEach(v=>v.onclick=()=>{
    if(v.className.indexOf('open') >= 0){
      v.className="sidebar-title left-siderbar"
      v.nextElementSibling.style.height="0"
    }else{      
      {        
        var x = document.querySelectorAll(".sidebar-title.left-siderbar");
        var i;
        for (i = 0; i < x.length; i++) {
          x[i].nextElementSibling.style.height = "0";
        }
      }
      v.className="sidebar-title left-siderbar open";
      v.nextElementSibling.style.height = v.nextElementSibling.children.length * 28 +"px";
    }
  })
  document.querySelectorAll('.sidebar-subtitle.second-menu').forEach(v=>v.onclick=()=>{
    // 关闭
    if(v.className.indexOf('expanded') >= 0){
      v.className = "sidebar-subtitle second-menu"; 
      v.parentElement.style.height = "28px";
      v.parentElement.parentElement.style.height = v.parentElement.parentElement.children.length  * 28 +"px";


    }else{
      // 其他全部折叠，展开当前
      {        
        var x = document.querySelectorAll(".sidebar-subtitle.second-menu");
        var i;
        for (i = 0; i < x.length; i++) {
          x[i].parentElement.style.height = "28px";
          x[i].className = "sidebar-subtitle second-menu";
        }
      }
      v.className="sidebar-subtitle second-menu expanded";
      v.parentElement.style.height = (v.nextElementSibling.children.length +1) * 28 + "px";
      
      v.parentElement.parentElement.style.height = (v.nextElementSibling.children.length + v.parentElement.parentElement.children.length) * 28 +"px";
    }
  });
  </script>
    
  </div>
  <div id="mobile-lang-select-wrap">
    <span id="mobile-lang-select-label"><i class="fa fa-globe"></i><span>简体中文</span></span>
    <select id="mobile-lang-select" data-canonical="">
      
        <option value="zh-cn" selected="selected">简体中文</option>
      
    </select>
  </div>
</nav>
<script>
Array.from(document.querySelectorAll('.side-mobile-nav-link-group.top')).forEach(v=>{
  v.style.display = "block";
  v.nextElementSibling.style.display = "inherit"
})

Array.from(document.querySelectorAll('.side-mobile-nav-link-group.top')).forEach(v=>{
  isOpen(v)})

Array.from(document.querySelectorAll('.side-mobile-nav-link-group.top')).forEach(v=>{
  calcuHeight(v)})
  
function isOpen(group) {
    const children = Array.from(group.children[1].children)
    const isOpenStatus = children.map(function (element) {
      if (element.className.indexOf('side-mobile-nav-link-group') >= 0) {
        return isOpen(element)
      } else {
        if (element.className.indexOf('current') >= 0) {
          return true
        } else {
          return false
        }
      }
    }).reduce((a, b) => a || b, false)


    if (isOpenStatus) {
      if (group.className.indexOf('top') >= 0)
        group.className = 'side-mobile-nav-link-group top open'
      else
        group.className = 'side-mobile-nav-link-group open'
    }else{
      if (group.className.indexOf('top') >= 0)
      group.className = 'side-mobile-nav-link-group top '
    else
      group.className = 'side-mobile-nav-link-group'
    }

    return isOpenStatus
  } 
  
  function calcuHeight(group){
    const link = group.children[0]
    const div = group.children[1]
    let  h = link.offsetHeight+1

    if(group.className.indexOf('open')<0){

    }else{
      const cheight =  Array.from(div.children).map(element=>{
        if (element.className.indexOf('side-mobile-nav-link-group') >= 0) {
          return calcuHeight(element)
        } else {
          return (element.offsetHeight)
        }
      }).reduce((a,b)=>a+b,0)

      h = h + cheight
    }

    group.style.height = h + 'px'

    return h
  }
  function calcuHeightWeb(group){
    const link = group.children[0]
    const div = group.children[1]
    let  h = link.offsetHeight

    if(group.className.indexOf('open')<0){

    }else{
      const cheight =  Array.from(div.children).map(element=>{
        if (element.className.indexOf('left-sidebar-link-group') >= 0) {
          return calcuHeightWeb(element)
        } else {
          return (element.offsetHeight+0.2)
        }
      }).reduce((a,b)=>a+b,0)

      h = h + cheight
    }

    group.style.height = h + 'px'

    return h
  }  
  function toggel(temp) {
  // web
  if (temp.className.indexOf('side-mobile-nav') >= 0) {
    if (temp.parentNode.className.indexOf("open") >= 0) {
      if (temp.parentNode.className.indexOf("top") >= 0) {
        temp.parentNode.className = 'side-mobile-nav-link-group top'
      } else {
        temp.parentNode.className = 'side-mobile-nav-link-group'
      }
    } else {
      if (temp.parentNode.className.indexOf("top") >= 0) {
        {
          var x = document.querySelectorAll(".side-mobile-nav-link-group.top");
          var i;
          for (i = 0; i < x.length; i++) {
            x[i].className = "side-mobile-nav-link-group top"
          }
        }
        temp.parentNode.className = 'side-mobile-nav-link-group top open'
      } else {
        {
          var y = document.querySelectorAll(".side-mobile-nav-link-group");
          var i;
          for (i = 0; i < y.length; i++) {
            if (y[i].className.indexOf("top") < 0) {
              y[i].className = 'side-mobile-nav-link-group'
            }
          }
        }
        temp.parentNode.className = 'side-mobile-nav-link-group open'
      }
    }

    // 标记 open ...

    Array.from(document.querySelectorAll('.side-mobile-nav-link-group.top')).forEach(v => {
      calcuHeight(v)
    })

  } else {

    if (temp.parentNode.className.indexOf("open") >= 0) {
      if (temp.parentNode.className.indexOf("top") >= 0) {
        temp.parentNode.className = 'left-sidebar-link-group top'
      } else {
        temp.parentNode.className = 'left-sidebar-link-group'
      }
    } else {
      if (temp.parentNode.className.indexOf("top") >= 0) {
        {
          var x = document.querySelectorAll(".left-sidebar-link-group.top");
          var i;
          for (i = 0; i < x.length; i++) {
            x[i].className = "left-sidebar-link-group top"
          }
        }
        temp.parentNode.className = 'left-sidebar-link-group top open'
      } else {
        {
          var y = document.querySelectorAll(".left-sidebar-link-group");
          var i;
          for (i = 0; i < y.length; i++) {
            if (y[i].className.indexOf("top") < 0) {
              y[i].className = 'left-sidebar-link-group'
            }
          }
        }
        temp.parentNode.className = 'left-sidebar-link-group open'
      }
    }

    // 标记 open ...

    Array.from(document.querySelectorAll('.left-sidebar-link-group.top')).forEach(v => {
      calcuHeightWeb(v)
    })
  }

}

Array.from(document.querySelectorAll('#mobile-nav-inner .bar-border')).forEach(c => {
  c.style.borderBottom = '1px solid #333';
})
Array.from(document.querySelectorAll('#mobile-nav-inner .side-mobile-nav-link-group')).forEach(c => {
  if(c.className.indexOf('top')<0){
    c.style.paddingLeft = '0px';
  }
})

</script>
  <!-- Scripts -->
<!-- Cookie -->

<!-- 
<script src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script>
 -->
<!-- build:js build/js/main.js -->

<script src="%E5%87%BD%E6%95%B0%20%E8%BE%BE%E6%A2%A6%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3_files/lang_select.js"></script>


<script src="%E5%87%BD%E6%95%B0%20%E8%BE%BE%E6%A2%A6%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3_files/mobile_nav.js"></script>

<!-- endbuild -->

<!-- Algolia -->


<script type="text/javascript">
//document.getElementById('search-input-wrap').classList.add('on');
//docsearch({
//  apiKey: 'cdea7d4e47d84f6145b77e7f68689f35',
//  indexName: 'hexo_zh-cn',
//  inputSelector: '#search-input'
//});
</script>


  <!-- 代码块复制功能 -->
<script type="text/javascript" src="%E5%87%BD%E6%95%B0%20%E8%BE%BE%E6%A2%A6%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3_files/clipboard.min.js"></script>
<script type="text/javascript" src="%E5%87%BD%E6%95%B0%20%E8%BE%BE%E6%A2%A6%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3_files/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="%E5%87%BD%E6%95%B0%20%E8%BE%BE%E6%A2%A6%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3_files/clipboard-use.js"></script>
<script type="text/javascript" src="%E5%87%BD%E6%95%B0%20%E8%BE%BE%E6%A2%A6%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3_files/icon.js"></script>
<script type="text/javascript" src="%E5%87%BD%E6%95%B0%20%E8%BE%BE%E6%A2%A6%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3_files/qrcode.min.js"></script>
<script type="text/javascript" src="%E5%87%BD%E6%95%B0%20%E8%BE%BE%E6%A2%A6%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3_files/jweixin-1.6.0.js"></script>
<script type="text/javascript" src="%E5%87%BD%E6%95%B0%20%E8%BE%BE%E6%A2%A6%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3_files/sha1.js"></script>
<script type="text/javascript" src="%E5%87%BD%E6%95%B0%20%E8%BE%BE%E6%A2%A6%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3_files/timestamp.js"></script>
<script type="text/javascript" src="%E5%87%BD%E6%95%B0%20%E8%BE%BE%E6%A2%A6%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3_files/random.js"></script>

<style>
html {
  -webkit-text-size-adjust: none;
}
.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}
.progress {
  width: 100%;
  top: 69px;
  position: fixed;
  height: 2px;
  background: transparent;
  border-radius: 0;
  z-index: 31;
}
progress::-webkit-progress-bar{
  background:#fff
}
progress::-webkit-progress-value{
  background:#1094e8
}
progress::-moz-progress-bar{
  background:#2e2fff;
  border-top: none;
  border-bottom: none;
}

.back-to-top .wechat-content .pop-img {
    padding: 5px !important;
}

</style>

<script>
//  生成二维码
new QRCode(document.getElementById("qrcode"), {
  width: 128,
  height: 128, // 高度
  text: location.href
  // render: 'canvas' ,   // 设置渲染方式（有两种方式 table和canvas，默认是canvas）
  // background: '#f0f',   // 背景色
  // foreground: '#ff0'    // 前景色
});

// 获取微信token
function getWechatToken(res){
    var r_timestamp = timestamp(),
    r_nonceStr = generateRandomAlphaNum(18),
    r_jsapi_ticket = res.ticket || "",
    r_url = location.href;

    wx.config({
      debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
      appId: 'wx9f722b93e81c672b', // 必填，公众号的唯一标识
      timestamp: r_timestamp, // 必填，生成签名的时间戳
      nonceStr: r_nonceStr, // 必填，生成签名的随机串
      signature: sha1(`jsapi_ticket=${r_jsapi_ticket}&noncestr=${r_nonceStr}&timestamp=${r_timestamp}&url=${r_url}`), // 必填，签名
      jsApiList: [
        'updateAppMessageShareData',
        'updateTimelineShareData'
      ], // 必填，需要使用的JS接口列表
    });
}

window.fetch(`https://eco.dameng.com/eco-system-server-biz/weixin/share/token`)
    .then(res => res.json())
    .then(json => json.result)
    .then((result) => {
      getWechatToken(result);
    }).then(() => {
      wx.ready(function () { //需在用户可能点击分享按钮前就先调用
        // 分享给朋友
        wx.updateAppMessageShareData({
          title: document.title, // 分享标题
          desc: document.querySelector(".article-content").innerText.slice(0, 50).replaceAll('\n', ''), // 分享描述
          link: location.href, // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
          imgUrl: `https://download.dameng.com/eco/assets/wechat_chatShare.png`, // 分享图标 res.coverLogo.url
          success: function () {
            // 设置成功
            // console.log(`分享成功`);
          },
          cancel: function () {
            // console.log(`分享已取消`);
          },
          fail: function (res) {
            // console.log(`分享失败，原因：`, JSON.stringify(res));
          }
        });

        // 分享到朋友圈
        wx.updateTimelineShareData({
          title: document.title, // 分享标题
          link: location.href, // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
          imgUrl: `https://download.dameng.com/eco/assets/wechat_friendShare.png`, // 分享图标
          success: function () {
            // 设置成功
          }
        })
      });
    })

document.querySelector("progress").style.display = "none"

function myFunction(){
  let scroll_height = document.documentElement.scrollTop
  let fixed_height = document.documentElement.clientHeight
  let sum = document.documentElement.scrollHeight - fixed_height

  let percent = (scroll_height/sum * 100)
  document.querySelector("progress").value = percent

  if(percent != 0){
    document.querySelector("progress").style.display = "inherit"
    document.querySelector("header").classList.add("has-border-and-shadow")
  }else if(percent === 0 || percent === 100){
    document.querySelector("progress").style.display = "none"
    document.querySelector("header").classList.remove("has-border-and-shadow")
  }
}

  var h = window.innerHeight;
  var backtotop = document.querySelector(".backtop");
  var CommonBody = document.querySelector("body");
  var popoverWechat = document.querySelector(".popover-wechat");
  var popoverPhone = document.querySelector(".popover-phone");
  var popoverEmail = document.querySelector(".popover-email");
  CommonBody.onscroll = function ScrollToTop(){
      var scroll = document.body.scrollTop || document.documentElement.scrollTop;
      if(scroll >= h -300){
          backtotop.classList.remove("hidden");
      }else{
          backtotop.classList.add("hidden");
      }

      popoverWechat.style.display = "none";
      popoverPhone.style.display = "none";
      popoverEmail.style.display = "none";
  };
  backtotop.addEventListener("click", function(){
      CommonBody.scrollIntoView({
          behavior: 'smooth',
          block: 'start'
      })
  });

// footer 悬浮
var iconWechat = document.querySelector(".icon.wechat");
var iconPhone = document.querySelector(".icon.phone");
var iconEmail = document.querySelector(".icon.email");
iconWechat.addEventListener("click", function(event){
  iconHidden();
  popoverWechat.style.display = "initial";
  event.stopPropagation()
})
iconWechat.addEventListener("mouseenter", function(event){
  iconHidden();
  popoverWechat.style.display = "initial";
  event.stopPropagation()
})
iconWechat.addEventListener("mouseleave", function(event){
  iconHidden();
  event.stopPropagation()
})
iconPhone.addEventListener("click", function(event){
  iconHidden();
  popoverPhone.style.display = "initial";
  event.stopPropagation()
})
iconPhone.addEventListener("mouseenter", function(event){
  iconHidden();
  popoverPhone.style.display = "initial";
  event.stopPropagation()
})
iconPhone.addEventListener("mouseleave", function(event){
  iconHidden();
  event.stopPropagation()
})
iconEmail.addEventListener("click", function(event){
  iconHidden();
  popoverEmail.style.display = "initial";
  event.stopPropagation()
})
iconEmail.addEventListener("mouseenter", function(event){
  iconHidden();
  popoverEmail.style.display = "initial";
  event.stopPropagation()
})
iconEmail.addEventListener("mouseleave", function(event){
  iconHidden();
  event.stopPropagation()
})
CommonBody.addEventListener("click", function (event){
  if(/Mobi|Android|iPhone/i.test(navigator.userAgent)){
    popoverWechat.style.display = "none";
    popoverPhone.style.display = "none";
    popoverEmail.style.display = "none";
  }
})

function iconHidden() {
  popoverWechat.style.display = "none";
  popoverPhone.style.display = "none";
  popoverEmail.style.display = "none";
}

  var weChatEr = document.querySelector(".we-chat");
  var popContent = document.querySelector(".pop-content");
  weChatEr.addEventListener("mouseenter", function(){
      popContent.style.display = "block";
  });
  weChatEr.addEventListener("mouseleave", function(){
      popContent.style.display = "none";
  });

  var wechatShare = document.querySelector(".wechat-share");
  var wechatContent = document.querySelector(".wechat-content");
  if(wechatShare && wechatContent) {
      wechatShare.addEventListener("mouseenter", function () {
        wechatContent.style.display = "block";
      });
      wechatShare.addEventListener("mouseleave", function () {
        wechatContent.style.display = "none";
      });
  }
</script>

</body></html>